From 90dddd34f34e63aebd2b546f1922ca5bc725187d Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 26 Aug 2020 11:46:56 +0200 Subject: [PATCH] removed test for invalid recipe as its no longer invalid due to parser improvements --- cookbook/tests/other/test_edits_recipe.py | 2 +- .../resources/websites/ld_json_invalid.html | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 cookbook/tests/resources/websites/ld_json_invalid.html diff --git a/cookbook/tests/other/test_edits_recipe.py b/cookbook/tests/other/test_edits_recipe.py index 0ad081a87..f5857b75f 100644 --- a/cookbook/tests/other/test_edits_recipe.py +++ b/cookbook/tests/other/test_edits_recipe.py @@ -12,7 +12,6 @@ class TestEditsRecipe(TestBase): {'file': 'cookbook/tests/resources/websites/ld_json_2.html', 'result_length': 1450}, {'file': 'cookbook/tests/resources/websites/ld_json_3.html', 'result_length': 1545}, {'file': 'cookbook/tests/resources/websites/ld_json_4.html', 'result_length': 1657}, - {'file': 'cookbook/tests/resources/websites/ld_json_invalid.html', 'result_length': 88}, {'file': 'cookbook/tests/resources/websites/ld_json_itemList.html', 'result_length': 3131}, {'file': 'cookbook/tests/resources/websites/ld_json_multiple.html', 'result_length': 1546}, {'file': 'cookbook/tests/resources/websites/micro_data_1.html', 'result_length': 1022}, @@ -23,6 +22,7 @@ class TestEditsRecipe(TestBase): for test in test_list: with open(test['file'], 'rb') as file: + print(f'Testing {test["file"]} expecting length {test["result_length"]}') parsed_content = json.loads(get_from_html(file.read(), 'test_url').content) self.assertEqual(len(str(parsed_content)), test['result_length']) file.close() diff --git a/cookbook/tests/resources/websites/ld_json_invalid.html b/cookbook/tests/resources/websites/ld_json_invalid.html deleted file mode 100644 index 208f3e4e0..000000000 --- a/cookbook/tests/resources/websites/ld_json_invalid.html +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file