forked from CGM_Public/pretix_original
Fix compatibility with newer pytest versions
This commit is contained in:
@@ -3,8 +3,13 @@ from contextlib import contextmanager
|
||||
from pytest_mock import MockFixture
|
||||
|
||||
|
||||
class FakePytestConfig:
|
||||
def getini(self, *args, **kwargs):
|
||||
return 'False'
|
||||
|
||||
|
||||
@contextmanager
|
||||
def mocker_context():
|
||||
result = MockFixture()
|
||||
result = MockFixture(FakePytestConfig())
|
||||
yield result
|
||||
result.stopall()
|
||||
|
||||
Reference in New Issue
Block a user