mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-05 07:55:23 -04:00
Fix tests
This commit is contained in:
parent
60afaaf338
commit
c572ab996a
3 changed files with 16 additions and 12 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue