diff options
| author | Barry Warsaw | 2012-07-02 16:08:58 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-07-02 16:08:58 -0400 |
| commit | 3e2231b8835820d240112e7e07cff2a369f178f2 (patch) | |
| tree | 513c973ae93f36efe969793e1a8abb28efbfc7bd /src/mailman/testing/helpers.py | |
| parent | 762af9a7d81fe88327c37f29c851a4d6f7bdaa45 (diff) | |
| download | mailman-3e2231b8835820d240112e7e07cff2a369f178f2.tar.gz mailman-3e2231b8835820d240112e7e07cff2a369f178f2.tar.zst mailman-3e2231b8835820d240112e7e07cff2a369f178f2.zip | |
Diffstat (limited to 'src/mailman/testing/helpers.py')
| -rw-r--r-- | src/mailman/testing/helpers.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py index 62e3b9d2a..5252c5334 100644 --- a/src/mailman/testing/helpers.py +++ b/src/mailman/testing/helpers.py @@ -363,8 +363,14 @@ class configuration: def __init__(self, section, **kws): self._section = section + # Most tests don't care about the name given to the temporary + # configuration. Usually we'll just craft a random one, but some + # tests do care, so give them a hook to set it. + if '_configname' in kws: + self._uuid = kws.pop('_configname') + else: + self._uuid = uuid.uuid4().hex self._values = kws.copy() - self._uuid = uuid.uuid4().hex def _apply(self): lines = ['[{0}]'.format(self._section)] |
