Many tests in the current code base rely on external functions to generate data, setup models, trainers etc.
Replacing these with pytest.fixtures is not only more idiomatic and reusable, but can also allow the tests to run faster (e.g. when scope="module" is applicable).
Many tests in the current code base rely on external functions to generate data, setup models, trainers etc.
Replacing these with
pytest.fixture
s is not only more idiomatic and reusable, but can also allow the tests to run faster (e.g. whenscope="module"
is applicable).