Skip to content

Commit

Permalink
codesty.e
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Dec 23, 2024
1 parent 58eaf12 commit 7335105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ def _check_valid_subset_label(self, subset_name, raise_if_invalid=True):
if subset_name in self._reserved_labels:
if raise_if_invalid:
raise ValueError("Cannot rename subset to name of an existing subset"
f" or data item: ({subset_name}).")
f" or data item: ({subset_name}).")
return False

Check warning on line 2039 in jdaviz/app.py

View check run for this annotation

Codecov / codecov/patch

jdaviz/app.py#L2039

Added line #L2039 was not covered by tests

elif not subset_name.replace(" ", "").isalnum():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,4 @@ def test_check_valid_subset_label(imviz_helper):
st.rename_selected("Subset 1")

with pytest.raises(ValueError, match="The pattern 'Subset N' is reserved"):
st.rename_selected("Subset 5")
st.rename_selected("Subset 5")

0 comments on commit 7335105

Please sign in to comment.