more sensible test vor sequence arguments

This commit is contained in:
Martin Diehl 2021-11-23 19:42:10 +01:00
parent 889ab87914
commit 3393d32d9f
1 changed files with 2 additions and 3 deletions

View File

@ -78,10 +78,9 @@ class TestColormap:
assert np.allclose(Colormap._xyz2msh(xyz),msh,atol=1.e-6,rtol=0) assert np.allclose(Colormap._xyz2msh(xyz),msh,atol=1.e-6,rtol=0)
@pytest.mark.parametrize('low,high',[((0,0,0),(1,1,1)), @pytest.mark.parametrize('low,high',[((0,0,0),(1,1,1)),
([0,0,0],[1,1,1]), ([0,0,0],[1,1,1])])
(np.array([0,0,0]),np.array([1,1,1]))])
def test_from_range_types(self,low,high): def test_from_range_types(self,low,high):
c = Colormap.from_range(low,high) # noqa assert Colormap.from_range(low,high) == Colormap.from_range(np.array(low),np.array(high))
@pytest.mark.parametrize('format',['ASCII','paraview','GOM','gmsh']) @pytest.mark.parametrize('format',['ASCII','paraview','GOM','gmsh'])
@pytest.mark.parametrize('model',['rgb','hsv','hsl','xyz','lab','msh']) @pytest.mark.parametrize('model',['rgb','hsv','hsl','xyz','lab','msh'])