From ef2045257b235b7d8e6651e739fd86418565c8ea Mon Sep 17 00:00:00 2001
From: Haakon Gunleiksrud <haakogun@stud.ntnu.no>
Date: Tue, 23 Feb 2021 08:25:18 +0100
Subject: [PATCH] get initial test of permissions.py

---
 backend/secfit/workouts/tests.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/backend/secfit/workouts/tests.py b/backend/secfit/workouts/tests.py
index 7fbbf78..2abdeeb 100644
--- a/backend/secfit/workouts/tests.py
+++ b/backend/secfit/workouts/tests.py
@@ -2,5 +2,21 @@
 Tests for the workouts application.
 """
 from django.test import TestCase
+from workouts.models import Workout
 
 # Create your tests here.
+"""
+Tests for ./permissions.py
+"""
+class IsOwnerTestCase(TestCase):
+
+    def setUp(self):
+        #Workout.objects.create(name="testworkout")
+        #testworkout = Workout.objects.get
+        return super().setUp()
+
+    def test_has_object_permission(self):
+        self.assertEqual(True,True)
+    
+
+    
-- 
GitLab