Open
Description
From #818, basis tests are now parametrized over a list of Basis
objects instantiated with parameters that are stored in tests/_basis_util
, e.g.
ASPIRE-Python/tests/test_FBbasis2D.py
Line 24 in 8720ce2
Instead of parametrizing test functions over the basis objects we should parametrize over the parameters themselves and create a fixture(s) to generate the basis objects.
Two things to note:
FLEBasis2D
FLE Basis #693 parametrizes over a variable the other bases do not, namelyepsilon
, which is an__init__
parameter- This fixture or fixtures will have to interact with the
UniversalBasisMixin
class in_basis_util
. The test functions in that class will have to accept a fixture rather than just aBasis
. The fixture could be defined at a very high level in_basis_util.py
(giving this class access to it), or the fixtures would have to be made available to it usingpytest.fixture(... scope="session")
or similar.