mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 15:05:11 -04:00
Fix common.get_tor_paths test
This commit is contained in:
parent
80b1246df8
commit
da12325d1d
3 changed files with 12 additions and 8 deletions
|
@ -227,12 +227,16 @@ class TestGetTorPaths:
|
|||
|
||||
# @pytest.mark.skipif(sys.platform != 'Linux', reason='requires Linux') ?
|
||||
def test_get_tor_paths_linux(self, platform_linux, common_obj):
|
||||
assert common_obj.get_tor_paths() == (
|
||||
"/usr/bin/tor",
|
||||
"/usr/share/tor/geoip",
|
||||
"/usr/share/tor/geoip6",
|
||||
"/usr/bin/obfs4proxy",
|
||||
)
|
||||
(
|
||||
tor_path,
|
||||
tor_geo_ip_file_path,
|
||||
tor_geo_ipv6_file_path,
|
||||
_, # obfs4proxy is optional
|
||||
) = common_obj.get_tor_paths()
|
||||
|
||||
assert os.path.basename(tor_path) == "tor"
|
||||
assert tor_geo_ip_file_path == "/usr/share/tor/geoip"
|
||||
assert tor_geo_ipv6_file_path == "/usr/share/tor/geoip6"
|
||||
|
||||
# @pytest.mark.skipif(sys.platform != 'Windows', reason='requires Windows') ?
|
||||
def test_get_tor_paths_windows(self, platform_windows, common_obj, sys_frozen):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue