You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tests: use fixtures within one test module to speed up tests #1428
Within a test module, e.g., linearGaussian_snpe_test.py, we repeatedly training NPE to test something. Sometimes it makes sense to train NPE from scratch every time, e.g., when testing different priors or different training settings, data dimensions etc.
However, sometimes we testing something that is downstream of the training and the training setting remains the same. In that case, we should cache the time intensive training using a pytest fixture defined at top level of the test module.
Activity
vagechirkov commentedon Mar 17, 2025
Hi, happy to work on it 🙂
janfb commentedon Jan 21, 2026
idea: use snapshot tests using https://pypi.org/project/pytest-snapshot/
idea from @tomMoral : use
joblibcaching.