diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-09-05 17:34:34 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-09-05 17:34:34 +0200 |
commit | 7be65237acd7fe91a6693d9c2518a8a0c849d672 (patch) | |
tree | 781a7134fac0b482f2311a3df7427b610827953d /testsuite/common.py | |
parent | 7586aee42bc37432ad07638e254997540aa34007 (diff) | |
download | bcfg2-7be65237acd7fe91a6693d9c2518a8a0c849d672.tar.gz bcfg2-7be65237acd7fe91a6693d9c2518a8a0c849d672.tar.bz2 bcfg2-7be65237acd7fe91a6693d9c2518a8a0c849d672.zip |
testsuite: Only sync the database once per TestCase
Diffstat (limited to 'testsuite/common.py')
-rw-r--r-- | testsuite/common.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/testsuite/common.py b/testsuite/common.py index 9db2cb94a..3c0ad82d7 100644 --- a/testsuite/common.py +++ b/testsuite/common.py @@ -245,14 +245,6 @@ class DBModelTestCase(Bcfg2TestCase): self.assertItemsEqual(list(model.objects.all()), []) -def syncdb(modeltest): - """ Given an instance of a :class:`DBModelTestCase` object, sync - and clean the database """ - inst = modeltest(methodName='test_syncdb') - inst.test_syncdb() - inst.test_cleandb() - - # in order for patchIf() to decorate a function in the same way as # patch(), we override the default behavior of __enter__ and __exit__ # on the _patch() object to basically be noops. |