Initial import of cf-temp-email deploy CLI

This commit is contained in:
mmc
2026-03-26 08:06:02 +08:00
commit 4100e9cf72
29 changed files with 6703 additions and 0 deletions

16
tests/test_environment.py Normal file
View File

@@ -0,0 +1,16 @@
from __future__ import annotations
import pytest
from cf_temp_email_deploy.environment import parse_semver
from cf_temp_email_deploy.errors import EnvironmentCheckError
def test_parse_semver_accepts_prefixed_versions() -> None:
assert parse_semver("v24.14.0") == (24, 14, 0)
def test_parse_semver_rejects_invalid_versions() -> None:
with pytest.raises(EnvironmentCheckError):
parse_semver("unknown")