mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 15:05:11 -04:00
Make helpers.get_pyinstaller_resource_path work when package is not frozen, and make tests report real platform to get accurate paths
This commit is contained in:
parent
ef5665b050
commit
e8ce6b1c54
2 changed files with 11 additions and 6 deletions
|
@ -23,5 +23,7 @@ import test_helpers
|
|||
|
||||
def test_get_platform_returns_platform_system():
|
||||
"""get_platform() returns platform.system() when ONIONSHARE_PLATFORM is not defined"""
|
||||
p = helpers.platform.system
|
||||
helpers.platform.system = lambda: 'Sega Saturn'
|
||||
assert helpers.get_platform() == 'Sega Saturn'
|
||||
helpers.platform.system = p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue