@@ -175,7 +175,8 @@ def test_db_access_3(self):
175
175
"*test_db_access_2 FAILED*" ,
176
176
"*test_db_access_3 FAILED*" ,
177
177
"*ERROR at setup of TestCase_setupClass.test_db_access_1*" ,
178
- "*Failed: Database access not allowed, use the \" django_db\" mark to enable*" ,
178
+ '*Failed: Database access not allowed, use the "django_db" mark, '
179
+ 'or the "db" or "transactional_db" fixtures to enable it.' ,
179
180
])
180
181
181
182
@@ -190,7 +191,8 @@ def test_db_access_in_conftest(self, django_testdir):
190
191
191
192
result = django_testdir .runpytest_subprocess ('-v' )
192
193
result .stderr .fnmatch_lines ([
193
- '*Failed: Database access not allowed, use the "django_db" mark to enable it.*' ,
194
+ '*Failed: Database access not allowed, use the "django_db" mark, '
195
+ 'or the "db" or "transactional_db" fixtures to enable it.*' ,
194
196
])
195
197
196
198
def test_db_access_in_test_module (self , django_testdir ):
@@ -201,5 +203,6 @@ def test_db_access_in_test_module(self, django_testdir):
201
203
202
204
result = django_testdir .runpytest_subprocess ('-v' )
203
205
result .stdout .fnmatch_lines ([
204
- '*Failed: Database access not allowed, use the "django_db" mark to enable it.*' ,
206
+ '*Failed: Database access not allowed, use the "django_db" mark, '
207
+ 'or the "db" or "transactional_db" fixtures to enable it.' ,
205
208
])
0 commit comments