Skip to content

Commit

Permalink
add test code (commented)
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Dec 11, 2024
1 parent 42f875f commit 5854213
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions timetagger/app/stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,15 @@ def reset(self):
self._create_tags()
self._create_one_year_of_data(self._years.pop(-1))

# Add many small records, for testing
# ds = "hello #there"
# t = dt.now()
# for i in range(20):
# t2 = t + 220
# record = self.records.create(t, t2, ds)
# t = t2
# self.records._put_received(record)

async def _sync(self):
"""Emulate a sync action."""
for kind in ["settings", "records"]:
Expand Down

0 comments on commit 5854213

Please sign in to comment.