Skip to content

Commit

Permalink
updating django package.
Browse files Browse the repository at this point in the history
  • Loading branch information
rrajputgrove committed May 23, 2024
1 parent 0bf3067 commit b1bdfce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions segments/tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fakeredis
from django.db.models.query_utils import InvalidQuery
from django.core.exceptions import FieldError
from django.db.utils import OperationalError
from django.test import TestCase

Expand Down Expand Up @@ -96,7 +96,7 @@ def setUp(self):
def test_invalid_raw_user_query_raises_exception(self):
empty_queries = ["", None, 1, True, "any string that does not contain s.elect"]
for query in empty_queries:
with self.assertRaises(InvalidQuery, msg=f'Passed query: "{query}"') as cm:
with self.assertRaises(FieldError, msg=f'Passed query: "{query}"') as cm:
generator = self.helper.execute_raw_user_query(query)
for _ in generator:
pass
Expand Down

0 comments on commit b1bdfce

Please sign in to comment.