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

Adding some pytest best practices #5

Conversation

elreydetoda
Copy link

Need to merge this one first: #4

This is just kind of a pytest best practices modification (at least according to the pytest class I took a while back), so I've mainly migrated a bunch of the variables you had inside your functions to be used inside the conftest.py. This allows them to be accessible by any test by passing them as a parameter (fixture) to the test.

- adding dockerfile to run tests in
- mostly generalizing .gitignore for any place in repo
- adding pytest.ini to configure pytest
- renaming home.py to match pytest.ini (default pytest) convention
- using base_url fixture instead of function + variable assignment
- updated teh cod based on new fixtures
@elreydetoda elreydetoda changed the title Kylepotts e2e tests feat/enhanced pytest Adding some pytest best practices Aug 23, 2022
@elreydetoda
Copy link
Author

closing because of new commits added to the PR here.

@elreydetoda elreydetoda deleted the kylepotts-e2e_tests-feat/enhanced_pytest branch September 4, 2022 07:26
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.

1 participant