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

Merge pull request #971 from jayvdb/i970

OscTestCase: Always reset CWD
This commit is contained in:
Marco Strigl 2021-11-08 21:39:11 +01:00 committed by GitHub
commit 8da29dc766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)