mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
16 lines
286 B
Python
16 lines
286 B
Python
from contextlib import contextmanager
|
|
|
|
from pytest_mock import MockFixture
|
|
|
|
|
|
class FakePytestConfig:
|
|
def getini(self, *args, **kwargs):
|
|
return 'False'
|
|
|
|
|
|
@contextmanager
|
|
def mocker_context():
|
|
result = MockFixture(FakePytestConfig())
|
|
yield result
|
|
result.stopall()
|