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
-2
View File
@@ -1,8 +1,6 @@
name: Test Suite name: Test Suite
on: on:
workflow_dispatch: workflow_dispatch:
schedule:
- cron: '00 15 * * *'
jobs: jobs:
tests: tests:
+5 -3
View File
@@ -12,7 +12,7 @@ import random
import sys import sys
import time import time
import unittest import unittest
import datetime
import xbmc import xbmc
if 'KOD_TST_CH' not in os.environ: if 'KOD_TST_CH' not in os.environ:
@@ -66,7 +66,7 @@ validUrlRegex = re.compile(
r'(?::\d+)?' # optional port r'(?::\d+)?' # optional port
r'(?:/?|[/?]\S+)$', re.IGNORECASE) r'(?:/?|[/?]\S+)$', re.IGNORECASE)
chBlackList = ['url', 'mediasetplay', 'metalvideo', 'accuradio'] chBlackList = ['url', 'mediasetplay', 'metalvideo', 'accuradio', 'cinetecadibologna', 'tunein']
srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube'] srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube']
chNumRis = { chNumRis = {
'altadefinizione01': { 'altadefinizione01': {
@@ -181,7 +181,9 @@ for chItem in channel_list:
for it in mainlist: for it in mainlist:
wait() wait()
try: 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': if it.action == 'channel_config':
hasChannelConfig = True hasChannelConfig = True