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

Pytest setup_method leads to longer than than needed runtime #5

Open
bveber opened this issue Nov 22, 2022 · 0 comments
Open

Pytest setup_method leads to longer than than needed runtime #5

bveber opened this issue Nov 22, 2022 · 0 comments

Comments

@bveber
Copy link
Owner

bveber commented Nov 22, 2022

Move the data loading elements out of setup_method. It only needs to be loaded once and can be shared across many tests. Look into pytest fixtures, pytest-datadir and pytest-datafiles

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