Tests violate DRY ? #927
prathamlahoti123
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While exploring the tests suites of the project, I found that certain components for testing are redefined in multiple files. For example, the fixture to get test HTTP-client, database management components such as definition of session_maker, fixture to prepare the database, and so on. Is there some specific logic in such an approach? Wouldn't it be a better way to declare such functionality in a form of fixtures in one place (or place some general functionality into tests.common.py), and then reuse it where needed ?
Beta Was this translation helpful? Give feedback.
All reactions