1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-23 06:48:51 +02:00

- tests.test_prdiff: disabled the usage of keyrings when running the cli

Alternatively we could also disable the keyring usage in the config file.
This commit is contained in:
Marcus Huewe
2013-01-24 15:33:41 +01:00
parent 57c8cffe66
commit d4b8fbbba4

View File

@@ -62,7 +62,7 @@ class TestProjectDiff(OscTestCase):
def _run_prdiff(self, *args):
"""Runs osc prdiff, returning captured STDOUT as a string."""
cli = osc.commandline.Osc()
argv = ['osc', 'prdiff']
argv = ['osc', '--no-keyring', '--no-gnome-keyring', 'prdiff']
argv.extend(args)
cli.main(argv=argv)
return sys.stdout.getvalue()