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
...
@@ -3,6 +3,8 @@ import os
import
sys
import
sys
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.management
import
execute_from_command_line
if
not
settings
.
configured
:
if
not
settings
.
configured
:
settings
.
configure
(
settings
.
configure
(
...
@@ -14,18 +16,16 @@ if not settings.configured:
...
@@ -14,18 +16,16 @@ if not settings.configured:
INSTALLED_APPS
=
[
INSTALLED_APPS
=
[
'django.contrib.contenttypes'
,
'django.contrib.contenttypes'
,
'taggit'
,
'taggit'
,
't
aggit.t
ests'
,
'tests'
,
]
]
)
)
from
django.test.simple
import
DjangoTestSuiteRunner
def
runtests
():
def
runtests
():
runner
=
DjangoTestSuiteRunner
()
argv
=
sys
.
argv
[:
1
]
+
[
'test'
]
+
sys
.
argv
[
1
:]
failures
=
runner
.
run_tests
([
'tests'
],
verbosity
=
1
,
interactive
=
True
)
execute_from_command_line
(
argv
)
sys
.
exit
(
failures
)
if
__name__
==
'__main__'
:
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
django
import
forms
from
taggit.tests
.models
import
Food
,
DirectFood
,
CustomPKFood
,
OfficialFood
from
.models
import
Food
,
DirectFood
,
CustomPKFood
,
OfficialFood
class
FoodForm
(
forms
.
ModelForm
):
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
from
unittest
import
TestCase
as
UnitTestCase
...
@@ -12,9 +12,9 @@ from django.utils.encoding import force_text
...
@@ -12,9 +12,9 @@ from django.utils.encoding import force_text
from
taggit.managers
import
TaggableManager
from
taggit.managers
import
TaggableManager
from
taggit.models
import
Tag
,
TaggedItem
from
taggit.models
import
Tag
,
TaggedItem
from
taggit.tests
.forms
import
(
FoodForm
,
DirectFoodForm
,
CustomPKFoodForm
,
from
.forms
import
(
FoodForm
,
DirectFoodForm
,
CustomPKFoodForm
,
OfficialFoodForm
)
OfficialFoodForm
)
from
taggit.tests
.models
import
(
Food
,
Pet
,
HousePet
,
DirectFood
,
DirectPet
,
from
.models
import
(
Food
,
Pet
,
HousePet
,
DirectFood
,
DirectPet
,
DirectHousePet
,
TaggedPet
,
CustomPKFood
,
CustomPKPet
,
CustomPKHousePet
,
DirectHousePet
,
TaggedPet
,
CustomPKFood
,
CustomPKPet
,
CustomPKHousePet
,
TaggedCustomPKPet
,
OfficialFood
,
OfficialPet
,
OfficialHousePet
,
TaggedCustomPKPet
,
OfficialFood
,
OfficialPet
,
OfficialHousePet
,
OfficialThroughModel
,
OfficialTag
,
Photo
,
Movie
,
Article
)
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