Skip to content

User tests + fixes#8

Merged
Sheppsu merged 17 commits intoSheppsu:mainfrom
descensiontohell:user_tests
Aug 4, 2022
Merged

User tests + fixes#8
Sheppsu merged 17 commits intoSheppsu:mainfrom
descensiontohell:user_tests

Conversation

@descensiontohell
Copy link
Copy Markdown
Contributor

Fixes:

  1. Fixed Event.__repr__() method
  2. Check if data["giver"] is None for KudosuHistory object
  3. Check if previous_username present in EventUser data
  4. Credentials removed from constants

Tests:

  1. Added user tests
  2. test_get_user_beatmaps moved from beatmap tests to user tests

Comment thread pytest_tests/constants.py Outdated
CLIENT_ID = 15033
CLIENT_SECRET = "dSbJw0V5RWbl3rBlOksmtNGHFPsz0PJDHlREOPPS"
REDIRECT_URI = "http://localhost:8080/callback"
CLIENT_ID =
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

should use os.getenv or something to define the credentials

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

solved in 4b612f2

@Sheppsu Sheppsu merged commit 76dbfc6 into Sheppsu:main Aug 4, 2022
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.

2 participants