Skip to content

Commit

Permalink
fix duplicate name error
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilorv committed Apr 3, 2025
1 parent 795c6d3 commit eca208e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/tests/test_exercise_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setUp(self):
self.exercise = Exercise.objects.create(name="Test Exercise", description="Test Description")
self.exercise.url = ExerciseSerializer(self.exercise, context={"request": None}).data["url"]

def test_exercise_number_min_minus(self):
def test_exercise_number_negative(self):
response = self.client.post("/api/workouts/", {
"name": "Invalid workout", # Adding name field which is required
"date": now().isoformat(), # Adding date field which is required
Expand Down Expand Up @@ -51,7 +51,6 @@ def test_exercise_number_min_minus(self):
"exercise_instances": [{"exercise":self.exercise.url, "sets": 1, "number": 0}]
}, format="json")

print(self.exercise.id)
assert response.status_code == 400

def test_exercise_number_min_plus(self):
Expand Down

0 comments on commit eca208e

Please sign in to comment.