Skip to content

Commit 35a40fc

Browse files
committed
Test check_magic_number() for <= 3.13
1 parent 14d21fc commit 35a40fc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_run_release.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ def test_invalid_extract_github_owner() -> None:
3232
run_release.extract_github_owner("https://example.com")
3333

3434

35-
def test_check_magic_number() -> None:
35+
@pytest.mark.parametrize("tag", ["3.12", "3.13"])
36+
def test_check_magic_number(tag) -> None:
37+
db = {"release": Tag(tag)}
38+
# Should return early with no error for 3.13 and earlier
39+
run_release.check_magic_number(cast(ReleaseShelf, db))
40+
41+
42+
def test_check_magic_number_exception() -> None:
3643
db = {
3744
"release": Tag("3.14.0rc1"),
3845
"git_repo": str(Path(__file__).parent / "magicdata"),

0 commit comments

Comments
 (0)