Skip to content

Commit

Permalink
Revert "HACK: Forward time to April's reporting window for showcase"
Browse files Browse the repository at this point in the history
This reverts commit c3400fc.
  • Loading branch information
markhobson committed Mar 26, 2024
1 parent c3400fc commit c43ee24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions schemes/infrastructure/clock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timedelta
from datetime import datetime


class Clock:
Expand All @@ -14,9 +14,7 @@ def now(self, now: datetime) -> None:
class SystemClock(Clock):
@property
def now(self) -> datetime:
# TODO: remove once showcased
# return datetime.now()
return datetime.now() + timedelta(weeks=4)
return datetime.now()

@now.setter
def now(self, now: datetime) -> None:
Expand Down
2 changes: 0 additions & 2 deletions tests/infrastructure/test_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class TestSystemClock:
def clock_fixture(self) -> SystemClock:
return SystemClock()

# TODO: remove once showcased
@pytest.mark.skip
def test_get_now(self, clock: SystemClock) -> None:
with patch("schemes.infrastructure.clock.datetime") as mock_datetime:
mock_datetime.now.return_value = datetime(2020, 1, 2, 12)
Expand Down

0 comments on commit c43ee24

Please sign in to comment.