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
2c68df1a
authored
Mar 25, 2013
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved tests to the toplevel.
parent
08579a12
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
runtests.py
+7
-7
tests/__init__.py
+0
-0
tests/forms.py
+2
-2
tests/models.py
+0
-0
tests/tests.py
+3
-3
No files found.
runtests.py
View file @
2c68df1a
...
...
@@ -3,6 +3,8 @@ import os
import
sys
from
django.conf
import
settings
from
django.core.management
import
execute_from_command_line
if
not
settings
.
configured
:
settings
.
configure
(
...
...
@@ -14,18 +16,16 @@ if not settings.configured:
INSTALLED_APPS
=
[
'django.contrib.contenttypes'
,
'taggit'
,
't
aggit.t
ests'
,
'tests'
,
]
)
from
django.test.simple
import
DjangoTestSuiteRunner
def
runtests
():
runner
=
DjangoTestSuiteRunner
()
failures
=
runner
.
run_tests
([
'tests'
],
verbosity
=
1
,
interactive
=
True
)
sys
.
exit
(
failures
)
argv
=
sys
.
argv
[:
1
]
+
[
'test'
]
+
sys
.
argv
[
1
:]
execute_from_command_line
(
argv
)
if
__name__
==
'__main__'
:
runtests
(
*
sys
.
argv
[
1
:]
)
runtests
()
t
aggit/t
ests/__init__.py
→
tests/__init__.py
View file @
2c68df1a
File moved
t
aggit/t
ests/forms.py
→
tests/forms.py
View file @
2c68df1a
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
,
absolute_import
from
django
import
forms
from
taggit.tests
.models
import
Food
,
DirectFood
,
CustomPKFood
,
OfficialFood
from
.models
import
Food
,
DirectFood
,
CustomPKFood
,
OfficialFood
class
FoodForm
(
forms
.
ModelForm
):
...
...
t
aggit/t
ests/models.py
→
tests/models.py
View file @
2c68df1a
File moved
t
aggit/t
ests/tests.py
→
tests/tests.py
View file @
2c68df1a
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
,
absolute_import
from
unittest
import
TestCase
as
UnitTestCase
...
...
@@ -12,9 +12,9 @@ from django.utils.encoding import force_text
from
taggit.managers
import
TaggableManager
from
taggit.models
import
Tag
,
TaggedItem
from
taggit.tests
.forms
import
(
FoodForm
,
DirectFoodForm
,
CustomPKFoodForm
,
from
.forms
import
(
FoodForm
,
DirectFoodForm
,
CustomPKFoodForm
,
OfficialFoodForm
)
from
taggit.tests
.models
import
(
Food
,
Pet
,
HousePet
,
DirectFood
,
DirectPet
,
from
.models
import
(
Food
,
Pet
,
HousePet
,
DirectFood
,
DirectPet
,
DirectHousePet
,
TaggedPet
,
CustomPKFood
,
CustomPKPet
,
CustomPKHousePet
,
TaggedCustomPKPet
,
OfficialFood
,
OfficialPet
,
OfficialHousePet
,
OfficialThroughModel
,
OfficialTag
,
Photo
,
Movie
,
Article
)
...
...
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