Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing #447

Merged
merged 38 commits into from
Apr 6, 2022
Merged

Add testing #447

merged 38 commits into from
Apr 6, 2022

Conversation

bri25yu
Copy link
Contributor

@bri25yu bri25yu commented Apr 6, 2022

  • Add code coverage using coverage.py
  • Add Github actions to run python tests and check formatting
  • Add MakeFile command to format code
  • Fixing some LGTM alerts
  • Testing fixes
    • event test slug error
    • test_tabular missing event type
    • test rsvp and unrsvp redirection tests
    • confirm rsvp not post 403
    • allow_public_access login required bug
    • academics api permissions test
    • test_confirm status code
  • Misc improvements/fixes
    • ordering academics api querysets
    • fixing course surveys index login error
    • fixing accesslevelrequired return None bug
    • improving resume review logic
    • dept tours slight cleanup, email sending, improving tours html
    • merging reviewsessions with events
    • improving candidatedto email domain logic
    • removing account activate
  • Tests added
    • resume review
    • dept tours
    • reviewsessions
    • studentservices models
    • cand: misc, checkoffs, mass add cands
    • tutoring views
    • users views
    • google calendar utils

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Apr 6, 2022

This pull request introduces 2 alerts and fixes 10 when merging 949fc1a into 65e0004 - view on LGTM.com

new alerts:

  • 1 for Unused import
  • 1 for URL redirection from remote source

fixed alerts:

  • 7 for URL redirection from remote source
  • 3 for Unused import

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Apr 6, 2022

This pull request introduces 2 alerts and fixes 10 when merging 9acf732 into 65e0004 - view on LGTM.com

new alerts:

  • 1 for Unused import
  • 1 for URL redirection from remote source

fixed alerts:

  • 7 for URL redirection from remote source
  • 3 for Unused import

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Apr 6, 2022

This pull request introduces 3 alerts and fixes 17 when merging 10fa688 into 65e0004 - view on LGTM.com

new alerts:

  • 2 for URL redirection from remote source
  • 1 for Unused import

fixed alerts:

  • 8 for URL redirection from remote source
  • 6 for Unused import
  • 1 for Missing named arguments in formatting call
  • 1 for Unused local variable
  • 1 for Nested loops with same variable

@bri25yu bri25yu merged commit 3c569e6 into compserv:master Apr 6, 2022
@bri25yu bri25yu deleted the add-testing branch April 6, 2022 08:00

.PHONY: format
format:
python -m black . --exclude "/(.*migrations|\.venv)/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use $(PYTHON) instead of "python"

pip install -r requirements-dev.txt
- name: Running black formatter check
run: |
python -m black . --check --exclude "/(.*migrations|\.venv)/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation: Add the --diff flag to see what needs to be changed (just like back in CS 61B style checking)

python -m black . --check --diff --exclude "/(.*migrations|\.venv)/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants