Self hosted FLOSS fitness/workout, nutrition and weight tracker
Post JSON in the session tests, the API is JSON-only now
Roland Geiderc259d395b838
diff --git a/wger/manager/tests/test_workout_session.py b/wger/manager/tests/test_workout_session.pyindex ea6191a82..c807bed6b 100644--- a/wger/manager/tests/test_workout_session.py+++ b/wger/manager/tests/test_workout_session.py@@ -67,6 +67,7 @@ class WorkoutSessionDurationTestCase(WgerTestCase):'datetime_start': '2025-03-12T10:00:00Z','datetime_end': f'2025-03-12T{10 + hours}:00:00Z',},+ content_type='application/json',)def test_session_within_the_limit(self):@@ -156,6 +157,7 @@ class WorkoutSessionLegacyFieldsTestCase(WgerTestCase):'time_start': '10:00','time_end': '11:30',},+ content_type='application/json',)self.assertEqual(response.status_code, status.HTTP_201_CREATED)@@ -181,6 +183,7 @@ class WorkoutSessionLegacyFieldsTestCase(WgerTestCase):'time_start': '23:00','time_end': '01:30',},+ content_type='application/json',)self.assertEqual(response.status_code, status.HTTP_201_CREATED)@@ -200,6 +203,7 @@ class WorkoutSessionLegacyFieldsTestCase(WgerTestCase):response = self.client.post(reverse('workoutsession-list'),data={'routine': self.ROUTINE, 'impression': '2', 'date': '2025-03-12'},+ content_type='application/json',)self.assertEqual(response.status_code, status.HTTP_201_CREATED)@@ -247,6 +251,7 @@ class WorkoutSessionLegacyFieldsTestCase(WgerTestCase):'time_start': '08:00','datetime_start': '2025-03-12T10:00:00Z',},+ content_type='application/json',)self.assertEqual(response.status_code, status.HTTP_201_CREATED)