mirror of
https://github.com/pretix/pretix.git
synced 2026-08-22 12:42:00 +00:00
Scope time machine state per event
This commit is contained in:
@@ -35,7 +35,7 @@ class TimemachineTestMixin:
|
||||
|
||||
def _set_time_machine_now(self, dt):
|
||||
session = self.client.session
|
||||
session['timemachine_now_dt'] = str(dt)
|
||||
session[f'timemachine_now_dt:{self.event.pk}'] = str(dt)
|
||||
session.save()
|
||||
|
||||
def _enable_test_mode(self):
|
||||
|
||||
Reference in New Issue
Block a user