From 0850089ab733dcf73828a70cad5e0591e5cb3b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 13 Dec 2024 23:27:59 +0100 Subject: [PATCH] chg: Fix tests for generix types. --- tests/capture_samples | 2 +- tests/simple_test.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/capture_samples b/tests/capture_samples index a8fc5cf..c1cad36 160000 --- a/tests/capture_samples +++ b/tests/capture_samples @@ -1 +1 @@ -Subproject commit a8fc5cf3d3f91b613496611f048b68e85eeaaec9 +Subproject commit c1cad3673d8dc6f12e01fa8e488fdb5e6aff8931 diff --git a/tests/simple_test.py b/tests/simple_test.py index 7efa76a..fa7b476 100644 --- a/tests/simple_test.py +++ b/tests/simple_test.py @@ -131,8 +131,8 @@ def test_rebuild_url_partial_double_slash(self) -> None: self.assertEqual(rebuild_url_double_slash, 'https://www.youtube.com/watch?v=iwGFalTRHDA') def test_hostname_tree_features(self) -> None: - self.assertEqual(self.http_redirect_ct.root_hartree.hostname_tree.features, {'name', 'js', 'html', 'pdf', 'json', 'text', 'video', 'css', 'iframe', 'http_content', 'https_content', 'support', 'dist', 'octet_stream', 'font', 'redirect', - 'unknown_mimetype', 'contains_rendered_urlnode', 'urls', 'uuid', 'redirect_to_nothing', 'unset_mimetype', 'image'}) + self.assertEqual(self.http_redirect_ct.root_hartree.hostname_tree.features, {'name', 'http_content', 'https_content', 'support', 'dist', + 'contains_rendered_urlnode', 'urls', 'uuid'}) self.assertTrue('meta_refresh' in self.http_redirect_ct.root_hartree.url_tree.external_ressources) self.assertEqual(self.http_redirect_ct.root_hartree.url_tree.external_ressources['meta_refresh'][0], 'https://www.youtube.com/watch?v=iwGFalTRHDA') @@ -195,9 +195,6 @@ def test_urls_in_rendered_page(self) -> None: 'https://policies.google.com/terms?hl=en&utm_soure=ucb'] ) - def test_iframe_feature(self) -> None: - self.assertTrue('iframe' in self.iframe_ct.root_hartree.hostname_tree.features) - def test_iframe_capture_name(self) -> None: self.assertEqual(self.iframe_ct.root_hartree.har.initial_title, '!! No title found !!')