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

Unit tests: move scraper construction from setUp (per-method) to setUpClass (per-case) #668

Merged
merged 1 commit into from Oct 22, 2022

Conversation

jayaddison
Copy link
Collaborator

This significantly reduces the amount of time taken (and compute resource used) to run the unit test suite.

There's at least one tradeoff: it makes the test cases somewhat stateful (side-effects introduced during one test method could affect other test methods).

@hhursev
Copy link
Owner

hhursev commented Oct 22, 2022

Oh my! 😍 👏

@hhursev
Copy link
Owner

hhursev commented Oct 22, 2022

you mean we used to re-open the testing file, re-run bs4 / schema parsing on every method testing lol.. nice catch

@jayaddison
Copy link
Collaborator Author

All the parsing 👍

@jayaddison jayaddison merged commit 2c3e0e8 into main Oct 22, 2022
@jayaddison jayaddison deleted the issue-617/unittest-setup-work branch October 22, 2022 17:58
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