Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brisvag committed Nov 9, 2023
1 parent 0987f38 commit 1211a86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def test_reader(star_file):
layer_data_list = reader(star_file)
assert len(layer_data_list) == 4

pts = layer_data_list[1]
pts = layer_data_list[0]
assert pts[2] == "points"
vec = layer_data_list[0]
vec = layer_data_list[1]
assert vec[2] == "vectors"


Expand All @@ -24,7 +24,7 @@ def test_construct_empty_layers():

assert len(layer_data_list) == 2

pts = layer_data_list[1]
pts = layer_data_list[0]
assert pts[2] == "points"
vec = layer_data_list[0]
vec = layer_data_list[1]
assert vec[2] == "vectors"
4 changes: 2 additions & 2 deletions tests/test_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def test_main_widget(make_napari_viewer):
# add new picking
wdg[1].l_type.value = "particles"
wdg[1]()
assert viewer.layers[-2].name == "test - particle orientations"
assert viewer.layers[-1].name == "test - particle positions"
assert viewer.layers[-2].name == "test - particle positions"
assert viewer.layers[-1].name == "test - particle orientations"

# add layer manually
lay = viewer.add_points(name="test_points")
Expand Down

0 comments on commit 1211a86

Please sign in to comment.