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
9bed0325
authored
May 28, 2010
by
Alex Gaynor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of custom primary keys.
parent
903093c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
taggit/tests/__init__.py
+2
-4
taggit/tests/tests.py
+5
-7
No files found.
taggit/tests/__init__.py
View file @
9bed0325
from
taggit.tests.tests
import
(
TaggableManagerTestCase
,
TaggableFormTestCase
,
from
taggit.tests.tests
import
(
TaggableManagerTestCase
,
TaggableFormTestCase
,
TaggableManagerDirectTestCase
,
TaggableManagerDirectTestCase
,
TaggableFormDirectTestCase
,
TaggableFormDirectTestCase
,
TaggableManagerCustomPKTestCase
,
TaggableFormCustomPKTestCase
)
TaggableManagerCustomPKTestCase
,
TaggableFormCustomPKTestCase
)
taggit/tests/tests.py
View file @
9bed0325
...
@@ -2,11 +2,9 @@ from django.test import TestCase
...
@@ -2,11 +2,9 @@ from django.test import TestCase
from
taggit.models
import
Tag
,
TaggedItem
from
taggit.models
import
Tag
,
TaggedItem
from
taggit.tests.forms
import
FoodForm
,
DirectFoodForm
,
CustomPKFoodForm
from
taggit.tests.forms
import
FoodForm
,
DirectFoodForm
,
CustomPKFoodForm
from
taggit.tests.models
import
(
Food
,
Pet
,
HousePet
,
from
taggit.tests.models
import
(
Food
,
Pet
,
HousePet
,
DirectFood
,
DirectPet
,
DirectFood
,
DirectPet
,
DirectHousePet
,
DirectHousePet
,
TaggedPet
,
CustomPKFood
,
CustomPKPet
,
CustomPKHousePet
,
TaggedPet
,
TaggedCustomPKPet
)
CustomPKFood
,
CustomPKPet
,
CustomPKHousePet
,
TaggedCustomPKPet
)
class
BaseTaggingTest
(
TestCase
):
class
BaseTaggingTest
(
TestCase
):
...
@@ -166,8 +164,8 @@ class TaggableManagerCustomPKTestCase(TaggableManagerTestCase):
...
@@ -166,8 +164,8 @@ class TaggableManagerCustomPKTestCase(TaggableManagerTestCase):
taggeditem_model
=
TaggedCustomPKPet
taggeditem_model
=
TaggedCustomPKPet
def
test_require_pk
(
self
):
def
test_require_pk
(
self
):
#
XXX with a charfield pk, pk is never None, so taggit has n
o
#
TODO with a charfield pk, pk is never None, so taggit has no way t
o
#
way to
tell if the instance is saved or not
# tell if the instance is saved or not
pass
pass
class
TaggableFormTestCase
(
BaseTaggingTest
):
class
TaggableFormTestCase
(
BaseTaggingTest
):
...
...
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