1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-09 22:36:14 +01:00

OscTestCase: Always reset CWD

Fixes #970
This commit is contained in:
John Vandenberg 2021-11-07 16:39:39 +08:00
parent d3e9ff739a
commit 090bd0316c

View File

@ -182,6 +182,7 @@ def addExpectedRequest(method, url, **kwargs):
class OscTestCase(unittest.TestCase):
def setUp(self, copytree=True):
os.chdir(os.path.dirname(__file__))
oscrc = os.path.join(self._get_fixtures_dir(), 'oscrc')
osc.core.conf.get_config(override_conffile=oscrc,
override_no_keyring=True, override_no_gnome_keyring=True)