Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-taggit
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
bd04ce59
authored
Mar 25, 2013
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed assertNumQueries.
parent
1f0533fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/tests.py
+2
-2
No files found.
tests/tests.py
View file @
bd04ce59
...
@@ -228,8 +228,8 @@ class TaggableManagerTestCase(BaseTaggingTestCase):
...
@@ -228,8 +228,8 @@ class TaggableManagerTestCase(BaseTaggingTestCase):
lookup
=
self
.
taggeditem_model
.
bulk_lookup_kwargs
(
objects
)
lookup
=
self
.
taggeditem_model
.
bulk_lookup_kwargs
(
objects
)
list
(
self
.
taggeditem_model
.
objects
.
filter
(
**
lookup
))
list
(
self
.
taggeditem_model
.
objects
.
filter
(
**
lookup
))
self
.
assert
_num_q
ueries
(
1
,
lookup_qs
)
self
.
assert
NumQ
ueries
(
1
,
lookup_qs
)
self
.
assert
_num_q
ueries
(
2
,
lookup_list
)
self
.
assert
NumQ
ueries
(
2
,
lookup_list
)
def
test_exclude
(
self
):
def
test_exclude
(
self
):
apple
=
self
.
food_model
.
objects
.
create
(
name
=
"apple"
)
apple
=
self
.
food_model
.
objects
.
create
(
name
=
"apple"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment