Fix test for Windows settings path

This commit is contained in:
Micah Lee 2018-11-25 19:10:19 -08:00
parent db93734ed2
commit 01baf3d6fd
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -176,7 +176,7 @@ class TestSettings:
platform_windows): platform_windows):
monkeypatch.setenv('APPDATA', 'C:') monkeypatch.setenv('APPDATA', 'C:')
obj = settings.Settings(common.Common()) obj = settings.Settings(common.Common())
assert obj.filename == 'C:\\OnionShare\\onionshare.json' assert obj.filename.replace('/', '\\') == 'C:\\OnionShare\\onionshare.json'
def test_set_custom_bridge(self, settings_obj): def test_set_custom_bridge(self, settings_obj):
settings_obj.set('tor_bridges_use_custom_bridges', 'Bridge 45.3.20.65:9050 21300AD88890A49C429A6CB9959CFD44490A8F6E') settings_obj.set('tor_bridges_use_custom_bridges', 'Bridge 45.3.20.65:9050 21300AD88890A49C429A6CB9959CFD44490A8F6E')