Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing dict result unit test #17

Merged
merged 1 commit into from
Jan 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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