mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-22 04:45:05 +00:00
Fix name_parser_tests and webapi_tests.
This commit is contained in:
parent
c75ef36cfe
commit
ec0dd62865
3 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue