We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1beb67f commit 16ca520Copy full SHA for 16ca520
tests/test_issues.py
@@ -122,7 +122,7 @@ def test_issue_81a(monkeypatch):
122
monkeypatch.setattr('demo.admin.ActionsModelAdmin.fields', ('id',))
123
with pytest.raises(SystemCheckError) as e:
124
call_command('check')
125
- assert 'concurrency.A001' in e.value.message
+ assert 'concurrency.A001' in str(e.value)
126
127
128
@skipIfDjangoVersion("<(1,11)")
@@ -136,4 +136,4 @@ def test_issue_81b(monkeypatch):
136
monkeypatch.setattr('demo.admin.ActionsModelAdmin.fieldsets', fieldsets)
137
138
139
- assert 'concurrency.A002' in e.value.message
+ assert 'concurrency.A002' in str(e.value)
0 commit comments