mirror of https://github.com/tLDP/python-tldp
suppress the "system" config during testing
This commit is contained in:
parent
c978cf5dff
commit
a3e3e6106f
|
@ -9,7 +9,7 @@ import unittest
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
from tempfile import NamedTemporaryFile as ntf
|
from tempfile import NamedTemporaryFile as ntf
|
||||||
|
|
||||||
from tldp.config import collectconfiguration
|
import tldp.config
|
||||||
from tldp.outputs import OutputNamingConvention
|
from tldp.outputs import OutputNamingConvention
|
||||||
|
|
||||||
# -- short names
|
# -- short names
|
||||||
|
@ -146,7 +146,8 @@ class TestInventoryBase(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.makeTempdir()
|
self.makeTempdir()
|
||||||
self.config, _ = collectconfiguration('ldptool', [])
|
tldp.config.DEFAULT_CONFIGFILE = None
|
||||||
|
self.config, _ = tldp.config.collectconfiguration('ldptool', [])
|
||||||
c = self.config
|
c = self.config
|
||||||
c.pubdir = os.path.join(self.tempdir, 'outputs')
|
c.pubdir = os.path.join(self.tempdir, 'outputs')
|
||||||
c.builddir = os.path.join(self.tempdir, 'builddir')
|
c.builddir = os.path.join(self.tempdir, 'builddir')
|
||||||
|
|
Loading…
Reference in New Issue