Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphene-django-optimizer-reloaded
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
graphene-django-optimizer-reloaded
Commits
dbf70fcd
Commit
dbf70fcd
authored
5 years ago
by
Piotr Roszatycki
Committed by
Tomás Fox
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Reenable assertion in assert_query_equality
parent
82719072
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_utils.py
+1
-2
1 addition, 2 deletions
tests/test_utils.py
with
1 addition
and
2 deletions
tests/test_utils.py
+
1
−
2
View file @
dbf70fcd
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment