1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-24 22:06:14 +01:00

Fix conf import in tests/common.py

This commit is contained in:
Daniel Mach 2022-08-23 14:28:11 +02:00
parent 31b804eeec
commit 00956cf13a

View File

@ -11,6 +11,7 @@ from xml.etree import ElementTree as ET
import urllib3.response import urllib3.response
import osc.conf
import osc.core import osc.core
@ -201,7 +202,7 @@ class OscTestCase(unittest.TestCase):
EXPECTED_REQUESTS = [] EXPECTED_REQUESTS = []
os.chdir(os.path.dirname(__file__)) os.chdir(os.path.dirname(__file__))
oscrc = os.path.join(self._get_fixtures_dir(), 'oscrc') oscrc = os.path.join(self._get_fixtures_dir(), 'oscrc')
osc.core.conf.get_config(override_conffile=oscrc, osc.conf.get_config(override_conffile=oscrc,
override_no_keyring=True, override_no_gnome_keyring=True) override_no_keyring=True, override_no_gnome_keyring=True)
os.environ['OSC_CONFIG'] = oscrc os.environ['OSC_CONFIG'] = oscrc