From 2c19e16994b7612fb8886fb18aed83802d7c044c Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 27 Aug 2025 13:47:53 +0200 Subject: [PATCH] Assert dynamic tool error message specificity --- lib/galaxy_test/api/test_workflows.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy_test/api/test_workflows.py b/lib/galaxy_test/api/test_workflows.py index 6e7f85d0863..f09afb51e5e 100644 --- a/lib/galaxy_test/api/test_workflows.py +++ b/lib/galaxy_test/api/test_workflows.py @@ -1192,6 +1192,8 @@ test_data: # do the raw re-import as a regular user we expect a 403 error. response = self.workflow_populator.create_workflow_response(downloaded_workflow) self._assert_status_code_is(response, 403) + response_dict = response.json() + assert response_dict["err_msg"] == "Only admin users can create tools dynamically." def test_import_annotations(self): workflow_id = self.workflow_populator.simple_workflow("test_import_annotations", publish=True)