Use a custom Settings object in test_onionshare_web.py, rather than potentially load non-ephemeral settings

This commit is contained in:
Miguel Jacq 2019-02-26 11:10:09 +11:00
parent 5fc0cc326a
commit 93a4905b72
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -41,7 +41,7 @@ RANDOM_STR_REGEX = re.compile(r'^[a-z2-7]+$')
def web_obj(common_obj, mode, num_files=0):
""" Creates a Web object, in either share mode or receive mode, ready for testing """
common_obj.load_settings()
common_obj.settings = Settings(common_obj)
strings.load_strings(common_obj)
web = Web(common_obj, False, mode)
web.generate_slug()