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

Remove imports from within test functions #266

Open
bielsnohr opened this issue Nov 10, 2023 · 0 comments
Open

Remove imports from within test functions #266

bielsnohr opened this issue Nov 10, 2023 · 0 comments

Comments

@bielsnohr
Copy link
Collaborator

PEP8 specifies that imports should be put at the top of a Python file: https://peps.python.org/pep-0008/#imports

Therefore, linters will complain for the tests explained in Episode 2, Section 2, "Scaling Up Unit Testing".

We should group all imports at the top of the test files unless we want this to be a teachable linting moment.

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

No branches or pull requests

1 participant