diff --git a/backend/secfit/users/tests/test_twoway.py b/backend/secfit/users/tests/test_twoway.py index eac8b470199daade1bbbe78ec0554a9db1b705a3..dd9de1668bfa86a388ecafa26179fb39f1c80e77 100644 --- a/backend/secfit/users/tests/test_twoway.py +++ b/backend/secfit/users/tests/test_twoway.py @@ -1,13 +1,12 @@ from threading import local -from django.test import TestCase, RequestFactory, Client -from users.models import User -from users.serializers import UserSerializer +from django.test import TestCase, Client + class TwoWayDomainTest(TestCase): def setUp(self): self.client = Client() self.test_cases_data =[ - #All Valid + #Valid { "username" : "jorsi", "email" : "some@mail.com", @@ -20,7 +19,7 @@ class TwoWayDomainTest(TestCase): "favourite_exercise" : "curl", "main_gym" :"SIT", }, - #Username, email, password, password1 invalid + #Rest are invalid, first with several(username, email, password and password1) invalid inputs, then changing one by one { "username" : "//", "email" : "/&", @@ -33,7 +32,6 @@ class TwoWayDomainTest(TestCase): "favourite_exercise" : "curl", "main_gym" :"SIT", }, - # One by one after this { "username" : "//", "email" : "some@mail.com", @@ -84,7 +82,7 @@ class TwoWayDomainTest(TestCase): }, ] - def test_regi(self): + def test_twoway_domain_test(self): for case in self.test_cases_data: response = self.client.post('/api/users/', case)