test: add helper path test and stub requests (#4)

This commit is contained in:
2025-07-14 16:21:06 +03:00
committed by GitHub
parent 0c740539d0
commit c47ad984a6
5 changed files with 45 additions and 1 deletions

View File

@@ -27,6 +27,12 @@ default_test_path = Path("/tmp/test_project").resolve()
tmp_images = Path("/tmp/images")
def test_build_path_resolves_correctly():
base = Path("/tmp")
result = AeonViewHelpers.build_path(base, "a", "b", "c")
assert result == Path("/tmp/a/b/c").resolve()
def test_check_date_valid():
assert AeonViewHelpers.check_date(2023, 12, 31)