Skip to content

Commit

Permalink
Further test cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Nov 9, 2022
1 parent 40502d8 commit accec0f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions glasbey/tests/test_grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
def test_grid_length(grid_size, color_space):
if color_space == "RGB":
grid = rgb_grid(grid_size=grid_size)
elif color_space == "JCh":
grid = jch_grid(grid_size=grid_size)
else:
raise ValueError("Bad colorspace")
grid = jch_grid(grid_size=grid_size)


if type(grid_size) is int:
assert len(grid) == grid_size**3
Expand All @@ -41,10 +40,8 @@ def test_grid_length(grid_size, color_space):
def test_grid_dim(grid_size, color_space):
if color_space == "RGB":
grid = rgb_grid(grid_size=grid_size)
elif color_space == "JCh":
grid = jch_grid(grid_size=grid_size)
else:
raise ValueError("Bad colorspace")
grid = jch_grid(grid_size=grid_size)

if type(grid_size) is int:
for i in range(3):
Expand Down

0 comments on commit accec0f

Please sign in to comment.