diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1a012452..61e17c27 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,9 +35,10 @@ jobs: - name: Run tests run: | + export PYTHONPATH=$GITHUB_WORKSPACE export KODI_HOME=$GITHUB_WORKSPACE/tests/home export KODI_INTERACTIVE=0 - python tests.py + python tests/test_generic.py - uses: actions/upload-artifact@v2 with: diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/home/userdata/addon_data/plugin.video.kod/settings.xml b/tests/home/userdata/addon_data/plugin.video.kod/settings.xml new file mode 100644 index 00000000..e090e8e5 --- /dev/null +++ b/tests/home/userdata/addon_data/plugin.video.kod/settings.xml @@ -0,0 +1,113 @@ + + true + true + 1 + false + Off + true + + all + + + + true + false + 5 + false + + + true + 0 + + + false + special://profile/addon_data/plugin.video.kod/downloads/list/ + special://profile/addon_data/plugin.video.kod/downloads/ + + false + true + false + true + true + true + true + true + true + false + false + true + Film + Serie TV + false + false + 15 + default + false + false + true + true + ITA + true + true + kodfavorites-default.json + + + + + + false + true + 40 + 0 + false + 0 + 0 + false + true + 0 + true + true + 0 + 10 + + true + + + + special://profile/addon_data/plugin.video.kod/settings_channels + + true + false + skin.estuary + false + [B]4[B] - [B]Tamako Market[B] + 0 + true + true + 4 + + false + 20 + false + false + eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTQwMjkyNzYsImlkIjoicGVsaXNhbGFjYXJ0YSIsIm9yaWdfaWF0IjoxNTkzNDI0NDMyfQ.Op5vL2VNz_YJvnpX0fgz_3FVuOG9c1MT084jYdf-EcBuotgMoQ6-6TtKAAb_x8C-_AMEv1Io5DUpbjxIViSZEaI0wypfkWJEuSIHfTHqOaD80Pdf0hcK9pliSUTPQMPyHaacP-VaVubydMzq-n-5AORpYXuFE1w60KWuTZT4MbPA4F9SAENB4_q3VL-1heqnyrx7iEA5smQVO-LGCKMEgy9rnnCdtUWUP19WXqiaxCgng7Nmx8kICa5zV9I6ov_2XYzikJDF7txEoVdVVotQ1THUkAQfCmQOGb0pPIbFOpjXayNiPzmwj_yCLCakdO82cw0M7cJ2fOERfFKLmVn39w + 2020-06-29 + 1 + true + false + special://profile/addon_data/plugin.video.kod/videolibrary/ + + + + + + + Muro di Icone, 52 + Lista Larga, 55 + Lista, 50 + Lista, 50 + Predefinito , 0 + Lista Larga, 55 + Lista, 50 + 80 + diff --git a/tests/home/userdata/addon_data/plugin.video.kod/settings_channels/settings b/tests/home/userdata/addon_data/plugin.video.kod/settings_channels/settings new file mode 100644 index 00000000..e69de29b diff --git a/tests.py b/tests/test_generic.py similarity index 99% rename from tests.py rename to tests/test_generic.py index 5cf24e23..4359b4c4 100644 --- a/tests.py +++ b/tests/test_generic.py @@ -110,7 +110,7 @@ chNumRis = { servers = [] channels = [] -channel_list = channelselector.filterchannels("all")[:1] +channel_list = channelselector.filterchannels("all") ret = [] for chItem in channel_list: try: