diff options
author | Miguel Jacq <mig@mig5.net> | 2019-02-26 11:10:09 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2019-02-26 11:10:09 +1100 |
commit | 93a4905b72049adcb37d71e6707c14321980fa27 (patch) | |
tree | 8f7cae7f10fbfd7f9917c37f70fcee0f2fce1f40 /tests | |
parent | 5fc0cc326a4c71beefe9f307d1540bb352843e15 (diff) | |
download | onionshare-93a4905b72049adcb37d71e6707c14321980fa27.tar.gz onionshare-93a4905b72049adcb37d71e6707c14321980fa27.zip |
Use a custom Settings object in test_onionshare_web.py, rather than potentially load non-ephemeral settings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_onionshare_web.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |