diff --git a/tests/test_reader.py b/tests/test_reader.py index 019b46a..5c78fbf 100644 --- a/tests/test_reader.py +++ b/tests/test_reader.py @@ -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" @@ -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" diff --git a/tests/test_widget.py b/tests/test_widget.py index e709375..674effe 100644 --- a/tests/test_widget.py +++ b/tests/test_widget.py @@ -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")