fix pathinfo side effect from unit test
This commit is contained in:
parent
785ef7df38
commit
c8e1ca7732
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ class TestHubConfig(unittest.TestCase):
|
|||
|
||||
def setUp(self):
|
||||
self.context = mock.patch('kojihub.kojihub.context').start()
|
||||
# load_config modfies pathinfo, make sure it is restored
|
||||
mock.patch('koji.pathinfo').start()
|
||||
mock.patch('koji.BASEDIR').start()
|
||||
self.tempdir = tempfile.mkdtemp()
|
||||
self.environ = {
|
||||
'koji.hub.ConfigFile': self.tempdir + '/hub.conf',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue