Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added run_tests.sh

  • Loading branch information...
commit 2f444e058c2ad41a512cfa0d18d4216ea34669c4 1 parent ab34d48
@bfirsh authored
Showing with 3 additions and 16 deletions.
  1. +2 −0  run_tests.sh
  2. +1 −16 setup.py
View
2  run_tests.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+PYTHONPATH=. django-admin.py test tests --settings=class_based_views.tests.settings
View
17 setup.py
@@ -1,20 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from distutils.core import setup, Command
-import os
-import sys
-
-os.environ['DJANGO_SETTINGS_MODULE'] = 'class_based_views.tests.settings'
-
-from django.conf import settings
-from django.test.utils import get_runner
-
-class TestCommand(Command):
- def run(self):
- test_runner = get_runner(settings)
- failures = test_runner([], verbosity=1, interactive=True)
- sys.exit(failures)
-
+from distutils.core import setup
setup(
name='django-class-based-views',
@@ -34,5 +20,4 @@ def run(self):
'Operating System :: OS Independent',
'Programming Language :: Python',
],
- cmdclass={'test': TestCommand},
)
Please sign in to comment.
Something went wrong with that request. Please try again.