Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DvirH-Qspark committed Jun 26, 2024
1 parent bf02f5d commit 5bfc9a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,11 +1356,10 @@ def test_empty_queryset_filter(self):
mockset = MockSet(car1, car2)
self.assertEqual(mockset.count(), 2)
self.assertEqual(mockset.filter(Q()).count(), 2)

def test_mock_set_annotation_by_nested_mock_model(self):
mockset = MockSet(
MockModel(id=1, nested_mock=MockModel(id=1, field1="field_value"))
)
field1 = mockset.annotate(field1=models.F("nested_mock__field1")).values_list("field1")[0][0]

assert field1 == "field_value"
assert field1 == "field_value"

0 comments on commit 5bfc9a1

Please sign in to comment.