From 93a4905b72049adcb37d71e6707c14321980fa27 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 26 Feb 2019 11:10:09 +1100 Subject: [PATCH] Use a custom Settings object in test_onionshare_web.py, rather than potentially load non-ephemeral settings --- tests/test_onionshare_web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_onionshare_web.py b/tests/test_onionshare_web.py index 3f9540ae..0c29859b 100644 --- a/tests/test_onionshare_web.py +++ b/tests/test_onionshare_web.py @@ -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()