home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-factor TestCaseSansDB methods.
[plomtask]
/
tests
/
days.py
diff --git
a/tests/days.py
b/tests/days.py
index 36d0285296b7b191e4217475a08fb94646ed5207..f1d13b3fe7d03a7f43e5ed263ebbe74996460e82 100644
(file)
--- a/
tests/days.py
+++ b/
tests/days.py
@@
-10,6
+10,8
@@
from plomtask.exceptions import BadFormatException
class TestsSansDB(TestCase):
"""Days module tests not requiring DB setup."""
class TestsSansDB(TestCase):
"""Days module tests not requiring DB setup."""
+ legal_ids = ['2024-01-01']
+ illegal_ids = ['foo', '2024-02-30', '2024-02-01 23:00:00']
def test_Day_valid_date(self) -> None:
"""Test Day's date format validation and parsing."""
def test_Day_valid_date(self) -> None:
"""Test Day's date format validation and parsing."""