stefanradev93 / BayesFlow

A Python library for amortized Bayesian workflows using generative neural networks.
https://bayesflow.org/
MIT License
286 stars 45 forks source link

Make heavier use of `pytest.fixture` #134

Closed LarsKue closed 1 month ago

LarsKue commented 5 months ago

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).