File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 6
6
test_settings
7
7
*migrations*
8
8
*admin.py
9
+ *apps.py
9
10
*static*
10
11
*templates*
Original file line number Diff line number Diff line change 8
8
os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'test_settings' )
9
9
10
10
11
- @pytest .fixture (autouse = True )
12
- def enable_db_access_for_all_tests (transactional_db ): # pylint: disable=unused-argument
13
- pass
14
-
15
-
16
11
# `pytest` automatically calls this function once when tests are run.
17
12
def pytest_configure ():
18
13
settings .DEBUG = False
@@ -24,3 +19,8 @@ def pytest_configure():
24
19
django .setup ()
25
20
# Note: In Django =< 1.6 you'll need to run this instead
26
21
# settings.configure()
22
+
23
+
24
+ @pytest .fixture (autouse = True )
25
+ def enable_db_access_for_all_tests (db ): # pylint: disable=unused-argument
26
+ pass
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ model-mommy==1.5.1
11
11
pluggy==0.6.0 # via pytest
12
12
py==1.5.2 # via pytest
13
13
pytest-cov==2.5.1
14
+ pytest-django==3.1.2
14
15
pytest==3.4.1 # via pytest-cov, pytest-django
15
16
pytz==2018.3 # via django
16
17
six==1.11.0 # via model-mommy, pytest, six
You can’t perform that action at this time.
0 commit comments