Skip to content

Commit

Permalink
Fix TestToolshed.test_categories_client test for TS 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Dec 11, 2023
1 parent 1044c33 commit 20ae9d0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bioblend/_tests/TestToolshed.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,18 @@ def test_categories_client(self):
# get_repositories
repositories = self.ts.categories.get_repositories(visualization_category_id)
repositories_reversed = self.ts.categories.get_repositories(visualization_category_id, sort_order="desc")
assert repositories["repositories"][0]["model_class"] == "Repository"
assert len(repositories["repositories"]) > 200
assert {
"deprecated",
"description",
"homepage_url",
"id",
"name",
"owner",
"remote_repository_url",
"type",
"update_time",
} <= set(repositories["repositories"][0].keys())
assert repositories["repositories"][0] == repositories_reversed["repositories"][-1]

def test_repositories_client(self):
Expand Down

0 comments on commit 20ae9d0

Please sign in to comment.