diff --git a/CHANGES.md b/CHANGES.md index 4b7c7817..4e0c6dc9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,6 +22,14 @@ * Add menu Shows/"TMDB Cards" * Add a persons available socials (Youtube, LinkedIn, Reddit, Fansite, TikTok, Wikidata) * Change use TVDb genres on view-show if config/General/Interface/"Enable IMDb info" is disabled +* Change remove Python 3.7 from CI + + +[develop changelog] + +* Fix tv test to init recently added ReleaseMap to scene_exceptions refactor +* Fix double use of var `result` overwrites the return value and causes an error in _parse_custom_exceptions +* Fix name_parser_tests and webapi_tests ### 3.28.0 (2023-04-12 13:05:00 UTC) diff --git a/tests/name_parser_tests.py b/tests/name_parser_tests.py index c993ea11..b677699f 100644 --- a/tests/name_parser_tests.py +++ b/tests/name_parser_tests.py @@ -11,6 +11,7 @@ import sickgear from sickgear import db, name_cache, tv from sickgear.classes import OrderedDefaultdict from sickgear.name_parser import parser +from sickgear.scene_exceptions import ReleaseMap sickgear.SYS_ENCODING = 'UTF-8' @@ -474,6 +475,7 @@ scene_numbering_test = [ class MultiSceneNumbering(test.SickbeardTestDBCase): def test_multi_ep_numbering(self): + _ = ReleaseMap() for e_t in scene_numbering_test: sickgear.showList = [] sickgear.showDict = {} diff --git a/tests/webapi_tests.py b/tests/webapi_tests.py index 6ccac0ae..a97cc34c 100644 --- a/tests/webapi_tests.py +++ b/tests/webapi_tests.py @@ -106,6 +106,10 @@ def fake_action(*args, **kwargs): pass +class fake_class(): + pass + + class WebAPICase(test.SickbeardTestDBCase): webserver = None instance = None @@ -147,6 +151,10 @@ class WebAPICase(test.SickbeardTestDBCase): sickgear.started = True sickgear.API_KEYS = [['unit test key', '1234567890']] sickgear.USE_API = True + sickgear.process_media_scheduler = fake_class() + sickgear.update_show_scheduler = fake_class() + sickgear.process_media_scheduler.is_running_job = False + sickgear.update_show_scheduler.is_running_job = False except (BaseException, Exception) as e: print('Failed to start WebServer: %s' % ex(e))