Drop legacy mapping unit tests for FastAPI routes

This commit is contained in:
mvdbeek
2022-03-21 13:14:43 +01:00
parent d6424b5e72
commit 3bc7d7c867
2 changed files with 0 additions and 38 deletions
-2
View File
@@ -1041,8 +1041,6 @@ def populate_api_routes(webapp, app):
conditions=dict(method=["POST", "GET"]),
)
webapp.mapper.resource_with_deleted("library", "libraries", path_prefix="/api")
webapp.mapper.resource(
"content",
"contents",
-36
View File
@@ -39,42 +39,6 @@ def test_galaxy_routes():
id="testtoolshed.g2.bx.psu.edu/devteam/tool1",
)
test_webapp.assert_maps("/api/datatypes/sniffers", controller="datatypes", action="sniffers")
test_webapp.assert_maps("/api/histories/123/contents/456", controller="history_contents", action="show")
test_webapp.assert_maps(
"/api/histories/123/contents/456",
method="PUT",
controller="history_contents",
action="update",
)
# Test differeniating datasets and datasets collections
# in history contents.
test_webapp.assert_maps(
"/api/histories/123/contents/datasets/456",
method="PUT",
controller="history_contents",
action="update",
type="dataset",
)
test_webapp.assert_maps(
"/api/histories/123/contents/dataset_collections/456",
method="PUT",
controller="history_contents",
action="update",
type="dataset_collection",
)
assert_url_is(url_for("history_content", history_id="123", id="456"), "/api/histories/123/contents/456")
assert_url_is(
url_for("history_content_typed", history_id="123", id="456", type="dataset"),
"/api/histories/123/contents/datasets/456",
)
test_webapp.assert_maps("/api/dependency_resolvers", controller="tool_dependencies", action="index")
test_webapp.assert_maps(