Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hack-fix for django 1.3 layout tests

  • Loading branch information...
commit c27013370b4f58462856bcd5149fcb218c337739 1 parent 7ab8ef3
@kmmbvnr authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 django_jenkins/tasks/dir_tests.py
View
9 django_jenkins/tasks/dir_tests.py
@@ -15,10 +15,11 @@ def build_suite(app):
discovery_root = get_app_location(app)
if os.path.isdir(os.path.join(discovery_root, 'tests')):
discovery_root = os.path.join(discovery_root, 'tests')
-
- top_level_dir = discovery_root
- for _ in range(0, app.__name__.count('.')):
- top_level_dir = os.path.dirname(top_level_dir)
+ top_level_dir = discovery_root
+ else:
+ top_level_dir = discovery_root
+ for _ in range(0, app.__name__.count('.')):
+ top_level_dir = os.path.dirname(top_level_dir)
return defaultTestLoader.discover(discovery_root, top_level_dir=top_level_dir)
Please sign in to comment.
Something went wrong with that request. Please try again.