From 3da33e364ecfacd3b6571cecb59f48a7ddfc02e0 Mon Sep 17 00:00:00 2001 From: smilerz Date: Wed, 3 Mar 2021 21:15:12 -0600 Subject: [PATCH] fixed test --- cookbook/tests/api/test_api_keyword.py | 2 +- cookbook/tests/other/test_edits_recipe.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/tests/api/test_api_keyword.py b/cookbook/tests/api/test_api_keyword.py index ffc2bb40..6e870f32 100644 --- a/cookbook/tests/api/test_api_keyword.py +++ b/cookbook/tests/api/test_api_keyword.py @@ -80,7 +80,7 @@ class TestApiKeyword(TestViews): ) response = json.loads(r.content) self.assertEqual(r.status_code, 201) - self.assertEqual(response['name'], {self.keyword_1.name}) + self.assertEqual(response['name'], self.keyword_1.name) def test_keyword_delete(self): r = self.user_client_1.delete( diff --git a/cookbook/tests/other/test_edits_recipe.py b/cookbook/tests/other/test_edits_recipe.py index 7394854c..c8f44979 100644 --- a/cookbook/tests/other/test_edits_recipe.py +++ b/cookbook/tests/other/test_edits_recipe.py @@ -11,7 +11,7 @@ class TestEditsRecipe(TestBase): def test_ld_json(self): test_list = [ {'file': 'cookbook/tests/resources/websites/ld_json_1.html', 'result_length': 3237}, - {'file': 'cookbook/tests/resources/websites/ld_json_2.html', 'result_length': 1510}, + {'file': 'cookbook/tests/resources/websites/ld_json_2.html', 'result_length': 1509}, {'file': 'cookbook/tests/resources/websites/ld_json_3.html', 'result_length': 1629}, {'file': 'cookbook/tests/resources/websites/ld_json_4.html', 'result_length': 1744}, {'file': 'cookbook/tests/resources/websites/ld_json_itemList.html', 'result_length': 3206},