mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 17:38:35 +00:00
[test:InfoExtractor] Fix Nuxt JSON tests
Authored by: bashonly
This commit is contained in:
parent
0ac5e97eb0
commit
cc6111b31b
@ -2007,7 +2007,7 @@ def test_search_nuxt_json(self):
|
|||||||
'$ssite-config': {
|
'$ssite-config': {
|
||||||
'env': 'production',
|
'env': 'production',
|
||||||
'name': 'podcast-website',
|
'name': 'podcast-website',
|
||||||
'map': {},
|
'map': [],
|
||||||
'numbers': [1, 2, 3],
|
'numbers': [1, 2, 3],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -2026,7 +2026,7 @@ def test_search_nuxt_json(self):
|
|||||||
|
|
||||||
self.assertEqual(self.ie._search_nuxt_json(HTML, 'id'), PAYLOAD)
|
self.assertEqual(self.ie._search_nuxt_json(HTML, 'id'), PAYLOAD)
|
||||||
self.assertEqual(self.ie._search_nuxt_json('', None, fatal=False), {})
|
self.assertEqual(self.ie._search_nuxt_json('', None, fatal=False), {})
|
||||||
self.assertEqual(self.ie._search_nuxt_json(BAD_HTML, None, fatal=False), {})
|
self.assertEqual(self.ie._search_nuxt_json(BAD_HTML, None, default={}), {})
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user