Skip to content

Fix lookup typo in EmbeddedModelArrayField test #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/model_fields_/test_embedded_model_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@ def test_invalid_lookup(self):
with self.assertRaisesMessage(FieldDoesNotExist, msg):
Exhibit.objects.filter(sections__number__return=3)

def test_invalid_operation(self):
msg = "Unsupported lookup 'rage' for EmbeddedModelArrayField of 'IntegerField'"
def test_unsupported_lookup(self):
msg = "Unsupported lookup 'range' for EmbeddedModelArrayField of 'IntegerField'"
with self.assertRaisesMessage(FieldDoesNotExist, msg):
Exhibit.objects.filter(sections__number__rage=[10])
Exhibit.objects.filter(sections__number__range=[10])

def test_missing_lookup_suggestions(self):
msg = (
Expand Down