From 01baf3d6fde55a83368a85ace8632079ceb61c25 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 25 Nov 2018 19:10:19 -0800 Subject: [PATCH] Fix test for Windows settings path --- tests/test_onionshare_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_onionshare_settings.py b/tests/test_onionshare_settings.py index 371b2d27..42bf7f12 100644 --- a/tests/test_onionshare_settings.py +++ b/tests/test_onionshare_settings.py @@ -176,7 +176,7 @@ class TestSettings: platform_windows): monkeypatch.setenv('APPDATA', 'C:') 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): settings_obj.set('tor_bridges_use_custom_bridges', 'Bridge 45.3.20.65:9050 21300AD88890A49C429A6CB9959CFD44490A8F6E')