mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
- tests.common: disable usage of keyring and gnome-keyring in the testsuite
Otherwise it'll lead to (unexpected) errors if python-keyring or gnome-keyring are installed.
This commit is contained in:
parent
63e2bcabf7
commit
46b9fd36e4
@ -106,7 +106,8 @@ def addExpectedRequest(method, url, **kwargs):
|
||||
|
||||
class OscTestCase(unittest.TestCase):
|
||||
def setUp(self, copytree=True):
|
||||
osc.core.conf.get_config(override_conffile=os.path.join(self._get_fixtures_dir(), 'oscrc'))
|
||||
osc.core.conf.get_config(override_conffile=os.path.join(self._get_fixtures_dir(), 'oscrc'),
|
||||
override_no_keyring=True, override_no_gnome_keyring=True)
|
||||
self.tmpdir = tempfile.mkdtemp(prefix='osc_test')
|
||||
if copytree:
|
||||
shutil.copytree(os.path.join(self._get_fixtures_dir(), 'osctest'), os.path.join(self.tmpdir, 'osctest'))
|
||||
|
Loading…
Reference in New Issue
Block a user