mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-22 16:02:46 +00:00
Fix tests
This commit is contained in:
parent
53c887d354
commit
390c1d5de8
4 changed files with 9 additions and 7 deletions
|
@ -34,7 +34,10 @@ def addon_id():
|
|||
|
||||
|
||||
def kodi_version():
|
||||
return int(xbmc.getInfoLabel('System.BuildVersion').split('.')[0])
|
||||
# Kodistubs returns empty string, causing Python 3 tests to choke on int()
|
||||
# TODO: Make Kodistubs version configurable for testing purposes
|
||||
version_string = xbmc.getInfoLabel('System.BuildVersion') or "19.1 (19.1.0) Git:20210509-85e05228b4"
|
||||
return int(version_string.split(' ', 1)[0].split('.', 1)[0])
|
||||
|
||||
|
||||
def window(key, value=None, clear=False, window_id=10000):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue