diff --git a/api/api.py b/api/api.py index 9426b22..7e8263b 100644 --- a/api/api.py +++ b/api/api.py @@ -2245,6 +2245,7 @@ def post(self): # Check if the same Test Case is already associated with the same snippet if len(dbi.session.query(ApiTestCaseModel).join(TestCaseModel).filter( ApiTestCaseModel.section == section).filter( + TestCaseModel.title == repository).filter( TestCaseModel.repository == repository).filter( TestCaseModel.relative_path == relative_path).all()) > 0: return "Test Case already associated to the current api.", 409