Skip to content

Commit

Permalink
Update test_equivalence_class_exercise.py
Browse files Browse the repository at this point in the history
  • Loading branch information
malenelu authored and GitHub Enterprise committed Apr 1, 2025
1 parent 090a230 commit f08b0c2
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions backend/tests/test_equivalence_class_exercise.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
"""
TC_001 - Equivalence class test for the limit of sets in an exercise
"""
import pytest
from rest_framework.test import APIClient
from django.utils.timezone import now
from workouts.models import Workout
from django.contrib.auth import get_user_model
#import pytest
#from rest_framework.test import APIClient
#from django.utils.timezone import now
#from workouts.models import Workout
#from django.contrib.auth import get_user_model

@pytest.mark.django_db
class TestWorkoutAPI:
def setUp(self):
self.client = APIClient()
self.user = get_user_model().objects.create_user(username="testuser", password="password")
self.client.force_authenticate(self.user)
#@pytest.mark.django_db
#class TestWorkoutAPI:
#def setUp(self):
#self.client = APIClient()
#self.user = get_user_model().objects.create_user(username="testuser", password="password")
#self.client.force_authenticate(self.user)
from django.test import TestCase
from django.utils.timezone import now

class User(TestCase):
# Test an exercise instance with the lowest equivalence class
def test_create_below_exercise_instance(self):
response = self.client.post("api/exercise-instances/",
Expand Down

0 comments on commit f08b0c2

Please sign in to comment.