From 41807da7da5a5389cb64c7dedde50bf73fe96e77 Mon Sep 17 00:00:00 2001 From: philip-bell Date: Sat, 23 Jan 2021 17:45:59 +0000 Subject: [PATCH] fixing dict result unit test --- the_python_bay/tests/test_the_python_bay.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/the_python_bay/tests/test_the_python_bay.py b/the_python_bay/tests/test_the_python_bay.py index f450ae6..1c9f477 100644 --- a/the_python_bay/tests/test_the_python_bay.py +++ b/the_python_bay/tests/test_the_python_bay.py @@ -7,11 +7,10 @@ def test_the_python_bay_search(self): results = tpb.search("ubuntu") assert len(results) > 1 - def test_the_python_bay_search_json(self): - results = tpb.search_json("ubuntu") + def test_the_python_bay_search_dict(self): + results = tpb.search_dict("ubuntu") assert len(results) > 1 - first = results[0] - first_dict = json.loads(first) + first_dict = results[0] assert "magnet" in first_dict.keys() def test_the_python_bay_top_movies(self):