Skip to content

Commit cae3326

Browse files
authored
Update test_fixtures.py
1 parent 92829e0 commit cae3326

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from django.core import mail
1616
from django.db import connection, transaction
1717
from django.test import AsyncClient, AsyncRequestFactory, Client, RequestFactory
18+
from django.utils.connection import ConnectionDoesNotExist
1819
from django.utils.encoding import force_str
1920

2021
from .helpers import DjangoPytester
@@ -220,7 +221,7 @@ def test_django_assert_num_queries_db_using(
220221
with django_assert_num_queries(1, using=True):
221222
pass
222223

223-
with pytest.raises(TypeError):
224+
with pytest.raises(ConnectionDoesNotExist):
224225
with django_assert_num_queries(1, using="bad_db_name"):
225226
pass
226227

0 commit comments

Comments
 (0)