Add break-related tests
This commit is contained in:
@@ -59,3 +59,11 @@ class TestClass():
|
|||||||
assert formatted_callouts.__class__ is str
|
assert formatted_callouts.__class__ is str
|
||||||
|
|
||||||
# TODO write tests for the break addition/removal
|
# TODO write tests for the break addition/removal
|
||||||
|
|
||||||
|
def test_add_break(self) -> None:
|
||||||
|
today: datetime.date = datetime.date.today()
|
||||||
|
new_break = self.DATABASE_CONN.add_break(user_id=1, break_start=today, break_end=today)
|
||||||
|
assert new_break is None
|
||||||
|
|
||||||
|
def test_remove_break(self) -> None:
|
||||||
|
today: datetime.date = datetime.date.today()
|
||||||
|
|||||||
Reference in New Issue
Block a user