Exemple #1
0
 def __init__(self):
     Plugin.__init__(self)
     self.patcher = monkeypatch.MonkeyPatcher()
     self.directories_to_skip = set([
         os.path.join(settings.PROJECT_ROOT, 'libs'),
     ])
     self.vdisplay = None
     self.include_webdriver_tests = False
Exemple #2
0
    def pytest_configure(self, config):
        from utils.test_utils import monkeypatch
        self.patcher = monkeypatch.MonkeyPatcher()
        self.patcher.patch_functions()
        self.patch_mockredis()

        settings.MEDIA_ROOT = tempfile.mkdtemp(prefix='amara-test-media-root')

        reporter = config.pluginmanager.getplugin('terminalreporter')
        reporter.startdir = py.path.local('/run/pytest/')

        before_tests.send(config)