mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-18 14:02:15 +00:00
Much test refactoring
This commit is contained in:
13
conftest.py
13
conftest.py
@@ -1,9 +1,22 @@
|
||||
from django.conf import settings
|
||||
import django
|
||||
import pytest
|
||||
|
||||
|
||||
def pytest_configure():
|
||||
settings.PASSWORD_HASHERS = (
|
||||
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||
)
|
||||
settings.STATICFILES_DIRS.append('static/') # FIXME
|
||||
django.setup()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def splinter_webdriver():
|
||||
"""Override splinter webdriver name."""
|
||||
return 'chrome'
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def splinter_screenshot_dir():
|
||||
return 'screenshots/'
|
||||
Reference in New Issue
Block a user