From 6251349aa5da0d5eccfcec7c786b893ed666a311 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 12 Nov 2013 15:09:45 -0500 Subject: Options: added workaround for unit tests that use the parser --- testsuite/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuite') diff --git a/testsuite/common.py b/testsuite/common.py index c0dd8b518..aa2d4c8cf 100644 --- a/testsuite/common.py +++ b/testsuite/common.py @@ -38,6 +38,8 @@ def set_setup_default(option, value=None): if not hasattr(Bcfg2.Options.setup, option): setattr(Bcfg2.Options.setup, option, value) +Bcfg2.Options.Parser._unit_test = True + try: import django.conf has_django = True @@ -156,6 +158,7 @@ class Bcfg2TestCase(TestCase): class DBModelTestCase(Bcfg2TestCase): """ Test case class for Django database models """ models = [] + __test__ = False @skipUnless(has_django, "Django not found, skipping") def test_syncdb(self): -- cgit v1.2.3-1-g7c22