mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Added error messages and tests to event settings pages
This commit is contained in:
10
src/pretix/testutils/mock.py
Normal file
10
src/pretix/testutils/mock.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from contextlib import contextmanager
|
||||
|
||||
from pytest_mock import MockFixture
|
||||
|
||||
|
||||
@contextmanager
|
||||
def mocker_context():
|
||||
result = MockFixture()
|
||||
yield result
|
||||
result.stopall()
|
||||
Reference in New Issue
Block a user