Skip to content

Commit

Permalink
fix test, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Dec 17, 2024
1 parent ac53f1b commit 373256f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning][].
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html

## incoming release

- Global setting variables for showing circles as points and point size for scatter widget #309 #334
- Sorting the element names and coordinate system names alphabetically #285

## [0.5.4] - 2024-11-26

### Changed
Expand Down
5 changes: 3 additions & 2 deletions tests/test_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ def test_save_layer(qtbot, tmp_path: str, make_napari_viewer: any):
n = len(widget.elements_widget)
# I would have expected Shapes to be in position -2 and Points in position -1, but we have the following order
# because elements of the same type are grouped together
assert widget.elements_widget.item(n - 1).text() == "Shapes"
assert widget.elements_widget.item(n - 5).text() == "Points"
all_elements = [widget.elements_widget.item(i).text() for i in range(n)]
assert "Shapes" in all_elements
assert "Points" in all_elements

# add a new layer to the viewer with the newly saved shapes element
widget._onClick("Shapes")
Expand Down

0 comments on commit 373256f

Please sign in to comment.