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
Commit
eaa69d18
authored
Jul 20, 2013
by
idan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made test python 2.6 compliant and removed gitignore item
parent
39624291
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
.gitignore
+0
-2
tests/tests.py
+1
-1
No files found.
.gitignore
View file @
eaa69d18
...
@@ -3,5 +3,3 @@ django_taggit.egg-info/
...
@@ -3,5 +3,3 @@ django_taggit.egg-info/
dist/
dist/
_build/
_build/
.tox/
.tox/
.idea
tests/tests.py
View file @
eaa69d18
...
@@ -349,7 +349,7 @@ class TaggableManagerTestCase(BaseTaggingTestCase):
...
@@ -349,7 +349,7 @@ class TaggableManagerTestCase(BaseTaggingTestCase):
with
self
.
assertNumQueries
(
2
):
with
self
.
assertNumQueries
(
2
):
l
=
list
(
self
.
food_model
.
objects
.
prefetch_related
(
'tags'
)
.
all
())
l
=
list
(
self
.
food_model
.
objects
.
prefetch_related
(
'tags'
)
.
all
())
with
self
.
assertNumQueries
(
0
):
with
self
.
assertNumQueries
(
0
):
foods
=
{
f
.
name
:
set
(
t
.
name
for
t
in
f
.
tags
.
all
())
for
f
in
l
}
foods
=
dict
((
f
.
name
,
set
(
t
.
name
for
t
in
f
.
tags
.
all
()))
for
f
in
l
)
self
.
assertEqual
(
foods
,
{
self
.
assertEqual
(
foods
,
{
u'orange'
:
{
'2'
,
'4'
},
u'orange'
:
{
'2'
,
'4'
},
u'apple'
:
{
'1'
,
'2'
}
u'apple'
:
{
'1'
,
'2'
}
...
...
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