Skip to content

Commit ed957cb

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pre-commit-ci-update-config
2 parents 266f484 + 6037731 commit ed957cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/napari_matplotlib/tests/test_util.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ def test_fallback_if_missing_dimensions(mocker):
6969
test_css = " Flobble { background-color: rgb(0, 97, 163); } "
7070
mocker.patch("napari.qt.get_current_stylesheet").return_value = test_css
7171
with pytest.warns(RuntimeWarning, match="Unable to find DimensionToken"):
72-
assert from_napari_css_get_size_of("Flobble", (1, 2)) == QSize(1, 2)
72+
with pytest.warns(RuntimeWarning, match="Unable to find Flobble"):
73+
assert from_napari_css_get_size_of("Flobble", (1, 2)) == QSize(
74+
1, 2
75+
)
7376

7477

7578
def test_fallback_if_prelude_not_in_css():

0 commit comments

Comments
 (0)