mirror of
https://github.com/ivuorinen/aeonview.git
synced 2026-02-19 21:49:40 +00:00
test: add helper path test and stub requests (#4)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user