diff --git a/api/api.py b/api/api.py index 7e8263b..5a994a8 100644 --- a/api/api.py +++ b/api/api.py @@ -2245,7 +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.title == title).filter( TestCaseModel.repository == repository).filter( TestCaseModel.relative_path == relative_path).all()) > 0: return "Test Case already associated to the current api.", 409