Prova test-suite
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
name: Test Suite
|
name: Test Suite
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
|
||||||
- cron: '00 15 * * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user