mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Use a custom Settings object in test_onionshare_web.py, rather than potentially load non-ephemeral settings
This commit is contained in:
parent
5fc0cc326a
commit
93a4905b72
@ -41,7 +41,7 @@ RANDOM_STR_REGEX = re.compile(r'^[a-z2-7]+$')
|
|||||||
|
|
||||||
def web_obj(common_obj, mode, num_files=0):
|
def web_obj(common_obj, mode, num_files=0):
|
||||||
""" Creates a Web object, in either share mode or receive mode, ready for testing """
|
""" 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)
|
strings.load_strings(common_obj)
|
||||||
web = Web(common_obj, False, mode)
|
web = Web(common_obj, False, mode)
|
||||||
web.generate_slug()
|
web.generate_slug()
|
||||||
|
Loading…
Reference in New Issue
Block a user