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,7 +36,9 @@ def test_supportScalar():
assert supportScalar({'wght':2.5}, {'wght':(0,2,4)}) == 0.75
@pytest.mark.parametrize(
class VariationModelTest(object):
@pytest.mark.parametrize(
"locations, axisOrder, sortedLocs, supports, deltaWeights",
[
(
@ -127,10 +129,10 @@ def test_supportScalar():
],
)
]
)
def test_VariationModel(
locations, axisOrder, sortedLocs, supports, deltaWeights
):
)
def test_init(
self, locations, axisOrder, sortedLocs, supports, deltaWeights
):
model = VariationModel(locations, axisOrder=axisOrder)
assert model.locations == sortedLocs