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
4ee111a5
authored
Dec 16, 2010
by
Alex Gaynor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started working on tox support.
parent
90cdc13a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
.gitignore
+1
-1
setup.py
+1
-1
taggit/tests/runtests.py
+6
-3
tox.ini
+4
-0
No files found.
.gitignore
View file @
4ee111a5
...
...
@@ -3,4 +3,4 @@ django_taggit.egg-info/
dist/
_build/
MyProject.kpf
.tox/
setup.py
View file @
4ee111a5
...
...
@@ -32,6 +32,6 @@ setup(
'Programming Language :: Python'
,
'Framework :: Django'
,
],
test_suite
=
'runtests.runtests'
test_suite
=
'
taggit.tests.
runtests.runtests'
)
runtests.py
→
taggit/tests/
runtests.py
View file @
4ee111a5
#!/usr/bin/env python
import
os
import
sys
from
os.path
import
dirname
,
abspath
from
django.conf
import
settings
if
not
settings
.
configured
:
...
...
@@ -21,7 +20,11 @@ from django.test.simple import run_tests
def
runtests
(
*
test_args
):
if
not
test_args
:
test_args
=
[
'tests'
]
parent
=
dirname
(
abspath
(
__file__
))
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
)
...
...
tox.ini
0 → 100644
View file @
4ee111a5
[tox]
envlist
=
py25,py26,py27,pypy
[testenv]
commands
=
python setup.py test
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