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

Update tests so that they don't rely on specific credentials #23

Merged
merged 33 commits into from
Feb 18, 2019

Conversation

espoem
Copy link
Contributor

@espoem espoem commented Feb 17, 2019

Running tests locally required specific credentials for fpl.login() method. Mocking was introduced to abstract the logic of fetching data and a few methods' logic was fixed according to the docs.

Copy link
Owner

@amosbastian amosbastian left a comment

Choose a reason for hiding this comment

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

Some small changes and it's perfect imo. Great work making everything more robust and adding some great tests (especially since you don't even play FPL yourself)!

tests/test_fixture.py Outdated Show resolved Hide resolved
tests/test_h2h_league.py Outdated Show resolved Hide resolved
tests/test_h2h_league.py Show resolved Hide resolved
tests/test_user.py Outdated Show resolved Hide resolved
@amosbastian amosbastian merged commit d6948c1 into amosbastian:master Feb 18, 2019
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