fix per warning translatePath kodi 19, altri piccoli ritocchi

This commit is contained in:
marco
2020-10-19 14:14:03 +02:00
parent 79b3f56dad
commit 81dd318e3d
7 changed files with 25 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
rm tests/home/userdata/addon_data/plugin.video.kod/settings_channels/*.json
rm tests/home/userdata/addon_data/plugin.video.kod/settings_servers/*.json
rm tests/home/userdata/addon_data/plugin.video.kod/cookies.dat
rm tests/home/userdata/addon_data/plugin.video.kod/kod_db.sqlite
python -m pip install --upgrade pip
pip install sakee
pip install html-testRunner

View File

@@ -242,7 +242,7 @@ class GenericChannelMenuItemTest(unittest.TestCase):
if self.ch in chNumRis: # i know how much results should be
for content in chNumRis[self.ch]:
if content in self.title:
risNum = len([i for i in self.itemlist if not i.nextPage]) # not count nextpage
risNum = len([i for i in self.itemlist if i.title != typo(config.get_localized_string(30992), 'color kod bold')]) # not count nextpage
self.assertEqual(chNumRis[self.ch][content], risNum,
'channel ' + self.ch + ' -> ' + self.title + ' returned wrong number of results<br>'
+ str(risNum) + ' but should be ' + str(chNumRis[self.ch][content]) + '<br>' +