Commit 76869665 authored by Vegard Murvold Sporstøl's avatar Vegard Murvold Sporstøl
Browse files

some changes to additional tests

parent 881f6de9
Pipeline #128078 passed with stages
in 2 minutes and 44 seconds
...@@ -24,4 +24,5 @@ class RemembermeTestCase(TestCase): ...@@ -24,4 +24,5 @@ class RemembermeTestCase(TestCase):
def test_rememberme(self): def test_rememberme(self):
data = {"username": "user", "password": "test"} data = {"username": "user", "password": "test"}
response = self.client.get(url, data) response = self.client.get(url, data)
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
\ No newline at end of file
\ No newline at end of file
...@@ -14,7 +14,8 @@ class WorkoutFilesTestCase(TestCase): ...@@ -14,7 +14,8 @@ class WorkoutFilesTestCase(TestCase):
""" """
def setUp(self): def setUp(self):
self.user = User.objects.create(username="user") self.user = User.objects.create(username="user")
self.workout = Workout.objects.create(name="workout", date="2021-03-06T18:00:00Z", notes="note", owner=self.user, visibility="PU") self.workout = Workout.objects.create(name="workout", date="2021-03-06T18:00:00Z", notes="note",
owner=self.user, visibility="PU")
self.exercise = Exercise.objects.create(name="exercise", description="test", unit="test") self.exercise = Exercise.objects.create(name="exercise", description="test", unit="test")
def test_workout_files(self): def test_workout_files(self):
......
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