Fix tests

This commit is contained in:
Micah Lee 2018-09-30 17:35:58 -07:00
parent 60afaaf338
commit c572ab996a
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
3 changed files with 16 additions and 12 deletions

View file

@ -8,7 +8,7 @@ import tempfile
import pytest
from onionshare import common, web, settings
from onionshare import common, web, settings, strings
@pytest.fixture
def temp_dir_1024():
@ -151,7 +151,10 @@ def time_strftime(monkeypatch):
@pytest.fixture
def common_obj():
return common.Common()
_common = common.Common()
_common.settings = settings.Settings(_common)
strings.load_strings(_common)
return _common
@pytest.fixture
def settings_obj(sys_onionshare_dev_mode, platform_linux):