From 20ae9d04f29b699983b3bec5382abc404440c7ff Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Mon, 11 Dec 2023 18:27:36 +0000 Subject: [PATCH] Fix ``TestToolshed.test_categories_client`` test for TS 2.0 --- bioblend/_tests/TestToolshed.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bioblend/_tests/TestToolshed.py b/bioblend/_tests/TestToolshed.py index 7a40dd8a4..97cc2bb0f 100644 --- a/bioblend/_tests/TestToolshed.py +++ b/bioblend/_tests/TestToolshed.py @@ -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):