From 7e1769bfe5d7505e8a092d5c21732107dad3d0d8 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Tue, 8 Nov 2022 18:55:32 +0100 Subject: [PATCH] Prova test-suite --- .github/workflows/tests.yml | 2 -- tests/test_generic.py | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8ca779c7..138f7888 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,6 @@ name: Test Suite on: workflow_dispatch: - schedule: - - cron: '00 15 * * *' jobs: tests: diff --git a/tests/test_generic.py b/tests/test_generic.py index 32e99761..b9d3a3f6 100644 --- a/tests/test_generic.py +++ b/tests/test_generic.py @@ -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