facebookresearch / beanmachine

A library that allows for inference on probabilistic models
https://beanmachine.org/
MIT License
264 stars 49 forks source link

[WIP] Pytest: Split & parametrise model/inference (intra-module) #1809

Open ntfrgl opened 1 year ago

ntfrgl commented 1 year ago

Motivation

As a first step of the Pytest suite refactoring and extension, the model/observation/inference choices in the existing tests are explicitly parametrised as fixtures, and local (intra-module) redundancies are factored out. In a subsequent PR, the module hierarchy of the test suite will be reorganised.

Since the implied change set is of considerable size, at the time of opening this PR the refactoring is only carried out on a representative subset of the test suite, and will be extended over the rest upon initial feedback.

Changes proposed

Test Plan

pytest

Types of changes

Checklist