Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit 7fd03724 authored by anarcat's avatar anarcat
Browse files

do not load default config files in tests

Closes: #57
parent faa3126e
......@@ -238,6 +238,8 @@ class BaseTestCase(unittest.TestCase):
self.args = [ '--no-mail' ] + self.args + [ x for x in sys.argv[1:] if x.startswith('-') ]
if self.pattern is not None:
self.args += [ self.pattern ]
# do not read system-wide configs in tests
MonkeysignArgumentParser.configs = []
self.ui = MonkeysignUi(self.args)
self.ui.keyring = TempKeyring()
self.ui.prepare() # needed because we changed the base keyring
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment