diff --git a/beat/web/toolchains/tests.py b/beat/web/toolchains/tests.py index 3de38a63412b3d69a93de77ea8db61edfdd7f218..c3c6e11cd38caaddbe09a2cc08a7ede5bd4cdd7e 100644 --- a/beat/web/toolchains/tests.py +++ b/beat/web/toolchains/tests.py @@ -853,9 +853,7 @@ class ToolchainCreation(ToolchainsAPIBase): ) content = self.checkResponse(response, 400, content_type="application/json") - self.assertNotEqual( - content.find("The toolchain declaration is **invalid**"), -1 - ) + self.assertTrue("declaration" in content) def test_no_forking_for_anonymous_user(self): response = self.client.post(