Skip to content

Commit 2f9b27f

Browse files
committed
Added tox support and fixed all failing tests.
1 parent 579bf2d commit 2f9b27f

File tree

7 files changed

+462
-404
lines changed

7 files changed

+462
-404
lines changed

runtests.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env python
2+
import sys
3+
4+
from django.conf import settings
5+
6+
7+
settings.configure(
8+
DATABASES={
9+
'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory;'}
10+
},
11+
INSTALLED_APPS=[
12+
'django.contrib.auth',
13+
'django.contrib.sessions',
14+
'django.contrib.contenttypes',
15+
'tagging',
16+
'tagging.tests',
17+
],
18+
)
19+
20+
21+
def runtests(*test_args):
22+
import django.test.utils
23+
24+
runner_class = django.test.utils.get_runner(settings)
25+
test_runner = runner_class(verbosity=1, interactive=True, failfast=False)
26+
failures = test_runner.run_tests(['tagging'])
27+
sys.exit(failures)
28+
29+
30+
if __name__ == '__main__':
31+
runtests()

tagging/tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .tests import *

tagging/tests/settings.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)