Skip to content

Commit

Permalink
Merge pull request #17 from phil-bell/fix-unit-tests
Browse files Browse the repository at this point in the history
fixing dict result unit test
  • Loading branch information
phil-bell authored Jan 23, 2021
2 parents 73f7233 + 41807da commit 04d673b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions the_python_bay/tests/test_the_python_bay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 04d673b

Please sign in to comment.