Skip to content

Commit

Permalink
chg: Fix tests for generix types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Dec 13, 2024
1 parent b842da2 commit 0850089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/capture_samples
7 changes: 2 additions & 5 deletions tests/simple_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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 !!')

Expand Down

0 comments on commit 0850089

Please sign in to comment.