Skip to content

Commit

Permalink
add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Aug 2, 2023
1 parent 51552a3 commit 465779d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/yt_napari/_tests/test_schema_version_comparisons.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest

from yt_napari._version import version
from yt_napari.schemas import _version_comparison as vc


Expand Down Expand Up @@ -29,3 +30,11 @@ def test_schema_str_validation(string_to_test, expected):
assert (
vc.schema_version_is_valid(string_to_test, dev_version_check=False) is expected
)


def test_schema_str_dev_validation():
expected = "dev" in version # in test env, this should always be true
_is_valid = vc.schema_version_is_valid(
"yt-napari_1000.1.0.json", dev_version_check=True
)
assert _is_valid is expected

0 comments on commit 465779d

Please sign in to comment.