mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-28 02:43:43 -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
1f1aa6fd52
commit
74e44f71b7
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue