mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Allow tor files to be in /usr/share or /usr/local/share in tests
This commit is contained in:
parent
e68266fe63
commit
9e9dfb86e3
@ -235,8 +235,14 @@ class TestGetTorPaths:
|
||||
) = 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"
|
||||
assert (
|
||||
tor_geo_ip_file_path == "/usr/share/tor/geoip"
|
||||
or tor_geo_ip_file_path == "/usr/local/share/tor/geoip"
|
||||
)
|
||||
assert (
|
||||
tor_geo_ipv6_file_path == "/usr/share/tor/geoip6"
|
||||
or tor_geo_ipv6_file_path == "/usr/local/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…
Reference in New Issue
Block a user