feat(trials): stop_trial and clear trials on reset
This commit is contained in:
1 parent
4ebad1bd6c
commit
c53fdd8560
2 files changed
+24
No files matched your search
@@ -69,3 +69,15 @@ def test_reset_empty_is_noop(tracker):
|
||||
tracker.start_trial("Pack")
|
||||
tracker.reset_trials_for(set())
|
||||
assert tracker.get_trials()[0]["unused_boot_days"] == 0
|
||||
|
||||
|
||||
def test_stop_trial_removes_row(tracker):
|
||||
tracker.start_trial("Pack")
|
||||
tracker.stop_trial("Pack")
|
||||
assert tracker.get_trials() == []
|
||||
|
||||
|
||||
def test_reset_clears_trials(tracker):
|
||||
tracker.start_trial("Pack")
|
||||
tracker.reset()
|
||||
assert tracker.get_trials() == []
|
||||
Reference in new issue
Block a user