Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added SKIP_TESTS settings

  • Loading branch information...
commit 355ff3b3ebeab4566da9c978f994aa189947c791 1 parent faf02c9
@zbyte64 zbyte64 authored
Showing with 13 additions and 2 deletions.
  1. +2 −1  .gitignore
  2. +11 −1 src/test_extensions/management/commands/test.py
View
3  .gitignore
@@ -1,5 +1,6 @@
.DS_Store
+*~
*.pyc
build/*
dist/*
-src/*.egg-info/*
+src/*.egg-info/*
View
12 src/test_extensions/management/commands/test.py
@@ -79,7 +79,17 @@ def handle(self, *test_labels, **options):
#print test_runner
# print test_runner.__file__
+ if hasattr(settings, 'SKIP_TESTS'):
+ if not test_labels:
+ test_labels = list()
+ for app in settings.INSTALLED_APPS:
+ test_labels.append(app.split('.')[-1])
+ for app in settings.SKIP_TESTS:
+ try:
+ test_labels.remove(app)
+ except ValueError:
+ pass
failures = test_runner(test_labels, verbosity=verbosity,
interactive=interactive) # , skip_apps=skippers)
if failures:
- sys.exit(failures)
+ sys.exit(failures)
Please sign in to comment.
Something went wrong with that request. Please try again.