Skip to content
Snippets Groups Projects
Commit dbf70fcd authored by Piotr Roszatycki's avatar Piotr Roszatycki Committed by Tomás Fox
Browse files

Reenable assertion in assert_query_equality

parent 82719072
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,7 @@ def assert_query_equality(left_query, right_query):
if isinstance(lookup, Prefetch) and isinstance(right_lookup, Prefetch):
assert_query_equality(lookup.queryset, right_lookup.queryset)
elif isinstance(lookup, Prefetch):
# assert str(lookup.queryset.query) == right_lookup
pass
assert str(lookup.queryset.query) == right_lookup
elif isinstance(right_lookup, Prefetch):
assert lookup == str(right_lookup.queryset.query)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment