summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-11-12 15:09:45 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-11-12 15:16:12 -0500
commit6251349aa5da0d5eccfcec7c786b893ed666a311 (patch)
treee8a2bca1e5837d292b418db14deea4e0ec1c2fda /testsuite
parente30c785c94c5aa399c44fff386fa2279f64f1acc (diff)
downloadbcfg2-6251349aa5da0d5eccfcec7c786b893ed666a311.tar.gz
bcfg2-6251349aa5da0d5eccfcec7c786b893ed666a311.tar.bz2
bcfg2-6251349aa5da0d5eccfcec7c786b893ed666a311.zip
Options: added workaround for unit tests that use the parser
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/common.py3
1 files changed, 3 insertions, 0 deletions
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):