| |
@@ -14,6 +14,9 @@
|
| |
|
| |
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',
|
| |
On some systems, the gssapi test can stall when the session is deleted by the gc (trying to make a logout call to a fake hostname).
While fixing this, I also found an intermittent failure caused a test that modifies koji.pathinfo. This could cause future tests to fail path-related assertions.
Both issues fixed by a little extra mocking.