Compare commits

..

1 Commits

Author SHA1 Message Date
4851a0a0c3 chore(deps): update python to v3.14.3
Some checks failed
Validate PR Title / validate (pull_request) Successful in 6s
CI / ci (pull_request) Failing after 26s
2026-02-28 14:02:27 +00:00

View File

@@ -16,11 +16,7 @@ def test_correct() -> None:
def test_invalid() -> None:
"""Test timestamp_to_date() with an invalid timestamp."""
allowed_errors: list[str] = [
"'str' object cannot be interpreted as an integer",
"argument must be int or float, not str"
]
timestamp: str = "hello"
with pytest.raises(TypeError) as excinfo:
timestamp_to_date(timestamp)
assert str(excinfo.value) in allowed_errors
assert "'str' object cannot be interpreted as an integer" in str(excinfo.value)