models_test: bundle test methods under VariationModelTest class
in preparation for adding more unit tests to VariationModel class.
This commit is contained in:
parent
7e85782900
commit
b9aa815d06
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user