1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00

[test:InfoExtractor] Fix Nuxt JSON tests

Authored by: bashonly
This commit is contained in:
bashonly 2025-06-11 01:31:58 -05:00
parent 0ac5e97eb0
commit cc6111b31b
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -2007,7 +2007,7 @@ def test_search_nuxt_json(self):
'$ssite-config': {
'env': 'production',
'name': 'podcast-website',
'map': {},
'map': [],
'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('', 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__':