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
8a736d95
authored
Mar 29, 2012
by
Henrique Carvalho Alves
Committed by
Florian Apolloner
Mar 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test runner for Django 1.4
parent
c9c65c35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
setup.py
+1
-2
taggit/tests/runtests.py
+10
-14
No files found.
setup.py
View file @
8a736d95
...
@@ -32,6 +32,5 @@ setup(
...
@@ -32,6 +32,5 @@ setup(
'Programming Language :: Python'
,
'Programming Language :: Python'
,
'Framework :: Django'
,
'Framework :: Django'
,
],
],
test_suite
=
'taggit.tests.runtests.runtests'
test_suite
=
'taggit.tests.runtests.runtests'
,
)
)
taggit/tests/runtests.py
View file @
8a736d95
...
@@ -6,7 +6,11 @@ from django.conf import settings
...
@@ -6,7 +6,11 @@ from django.conf import settings
if
not
settings
.
configured
:
if
not
settings
.
configured
:
settings
.
configure
(
settings
.
configure
(
DATABASE_ENGINE
=
'sqlite3'
,
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
}
},
INSTALLED_APPS
=
[
INSTALLED_APPS
=
[
'django.contrib.contenttypes'
,
'django.contrib.contenttypes'
,
'taggit'
,
'taggit'
,
...
@@ -14,21 +18,13 @@ if not settings.configured:
...
@@ -14,21 +18,13 @@ if not settings.configured:
]
]
)
)
from
django.test.simple
import
run_tests
from
django.test.simple
import
DjangoTestSuiteRunner
def
runtests
(
*
test_args
):
def
runtests
():
if
not
test_args
:
runner
=
DjangoTestSuiteRunner
()
test_args
=
[
'tests'
]
failures
=
runner
.
run_tests
([
'tests'
],
verbosity
=
1
,
interactive
=
True
)
parent
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
".."
,
".."
,
)
sys
.
path
.
insert
(
0
,
parent
)
failures
=
run_tests
(
test_args
,
verbosity
=
1
,
interactive
=
True
)
sys
.
exit
(
failures
)
sys
.
exit
(
failures
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
runtests
(
*
sys
.
argv
[
1
:]
)
runtests
()
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