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 75bd1f1a authored by anarcat's avatar anarcat
Browse files

Merge branch 'no-config-test' into '2.x'

do not load default config files in tests

Closes: #57

See merge request !16
parents 05f1c48d 7fd03724
......@@ -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