Prova test-suite

This commit is contained in:
marco
2022-11-08 18:55:32 +01:00
parent 9c07dceab7
commit 7e1769bfe5
2 changed files with 5 additions and 5 deletions

View File

@@ -1,8 +1,6 @@
name: Test Suite
on:
workflow_dispatch:
schedule:
- cron: '00 15 * * *'
jobs:
tests:

View File

@@ -12,7 +12,7 @@ import random
import sys
import time
import unittest
import datetime
import xbmc
if 'KOD_TST_CH' not in os.environ:
@@ -66,7 +66,7 @@ validUrlRegex = re.compile(
r'(?::\d+)?' # optional port
r'(?:/?|[/?]\S+)$', re.IGNORECASE)
chBlackList = ['url', 'mediasetplay', 'metalvideo', 'accuradio']
chBlackList = ['url', 'mediasetplay', 'metalvideo', 'accuradio', 'cinetecadibologna', 'tunein']
srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube']
chNumRis = {
'altadefinizione01': {
@@ -181,7 +181,9 @@ for chItem in channel_list:
for it in mainlist:
wait()
try:
print('preparing ' + ch + ' -> ' + it.title)
now = datetime.datetime.now()
current_time = now.strftime("%H:%M:%S")
print(current_time + 'preparing ' + ch + ' -> ' + it.title)
if it.action == 'channel_config':
hasChannelConfig = True