From cc6111b31b696c62f828922187f6e6e07345b944 Mon Sep 17 00:00:00 2001 From: bashonly Date: Wed, 11 Jun 2025 01:31:58 -0500 Subject: [PATCH] [test:InfoExtractor] Fix Nuxt JSON tests Authored by: bashonly --- test/test_InfoExtractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py index 69465b7721..0b581d6202 100644 --- a/test/test_InfoExtractor.py +++ b/test/test_InfoExtractor.py @@ -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__':