models_test: bundle test methods under VariationModelTest class

in preparation for adding more unit tests to VariationModel class.
This commit is contained in:
Cosimo Lupo 2019-03-04 11:03:34 -08:00
parent 7e85782900
commit b9aa815d06

View File

@ -36,6 +36,8 @@ def test_supportScalar():
assert supportScalar({'wght':2.5}, {'wght':(0,2,4)}) == 0.75 assert supportScalar({'wght':2.5}, {'wght':(0,2,4)}) == 0.75
class VariationModelTest(object):
@pytest.mark.parametrize( @pytest.mark.parametrize(
"locations, axisOrder, sortedLocs, supports, deltaWeights", "locations, axisOrder, sortedLocs, supports, deltaWeights",
[ [
@ -128,8 +130,8 @@ def test_supportScalar():
) )
] ]
) )
def test_VariationModel( def test_init(
locations, axisOrder, sortedLocs, supports, deltaWeights self, locations, axisOrder, sortedLocs, supports, deltaWeights
): ):
model = VariationModel(locations, axisOrder=axisOrder) model = VariationModel(locations, axisOrder=axisOrder)