Commit a5031c13 authored by olavhdi's avatar olavhdi
Browse files

add timezone to workoutserializer test to avoid runtime warnings

parent 4acf62ce
Pipeline #129366 passed with stage
in 36 seconds
test_data = {
"name": "testCreate",
"date": "2021-03-20",
"date": "2021-03-20 19:00+0100",
"owner_id": "1",
"pk": "1",
"exercise_instances": {},
}
test_data1 = {
"name": "testCreate",
"date": "2021-03-20",
"date": "2021-03-20 19:00+0100",
"owner_id": "1",
"pk": "1",
"exercise_instances": {},
......
from django.test import TestCase
from django.contrib.auth import get_user_model
import datetime
from workouts.serializers import WorkoutSerializer, ExerciseSerializer
from workouts.models import Workout, Exercise, ExerciseInstance
from workouts.tests.test_data import test_data, test_data1, test_exercise
......@@ -23,7 +24,7 @@ class WorkoutSerializerTestCase(TestCase):
owner.save()
self.workout = Workout(
name="testCreate",
date="2021-03-20",
date="2021-03-20 19:00+0100",
owner=owner,
owner_id="1",
pk=1,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment