Skip to content

Commit 66e852c

Browse files
authored
Change error message assertion from 'Error' to 'ImportError'
1 parent f3ae159 commit 66e852c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_manage_py_scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_django_project_found_invalid_settings(
102102
result = django_pytester.runpytest_subprocess("django_project_root")
103103
assert result.ret != 0
104104

105-
result.stderr.fnmatch_lines(["*Error:*DOES_NOT_EXIST*"])
105+
result.stderr.fnmatch_lines(["*ImportError:*DOES_NOT_EXIST*"])
106106
result.stderr.fnmatch_lines(["*pytest-django found a Django project*"])
107107

108108

@@ -122,7 +122,7 @@ def test_django_project_scan_disabled_invalid_settings(
122122
result = django_pytester.runpytest_subprocess("django_project_root")
123123
assert result.ret != 0
124124

125-
result.stderr.fnmatch_lines(["*Error*DOES_NOT_EXIST*"])
125+
result.stderr.fnmatch_lines(["*ImportError*DOES_NOT_EXIST*"])
126126
result.stderr.fnmatch_lines(["*pytest-django did not search for Django projects*"])
127127

128128

0 commit comments

Comments
 (0)