Merge develop branch and fix conflicts

This commit is contained in:
Miguel Jacq 2018-11-13 14:45:40 +11:00
commit d3b5e1e256
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
105 changed files with 3248 additions and 4862 deletions

View file

@ -31,6 +31,7 @@ import tempfile
import pytest
from onionshare.common import Common
from onionshare import strings
from onionshare.web import Web
from onionshare.settings import Settings
@ -41,7 +42,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()
strings.load_strings(common_obj)
web = Web(common_obj, False, mode)
web.generate_slug()
web.stay_open = True