@@ -22,7 +22,7 @@ def test_duplicate_email_registration(self):
2222 )
2323
2424 response = self .client .post (
25- self .signup_url ,
25+ self .company_signup_url ,
2626 self .valid_data ,
2727 format = 'json' ,
2828 )
@@ -46,7 +46,11 @@ def test_duplicate_email_registration(self):
4646 )
4747 def test_invalid_password_cases (self , _ , invalid_password ):
4848 test_data = {** self .valid_data , 'password' : invalid_password }
49- response = self .client .post (self .signup_url , test_data , format = 'json' )
49+ response = self .client .post (
50+ self .company_signup_url ,
51+ test_data ,
52+ format = 'json' ,
53+ )
5054 self .assertEqual (
5155 response .status_code ,
5256 rest_framework .status .HTTP_400_BAD_REQUEST ,
@@ -64,7 +68,11 @@ def test_invalid_password_cases(self, _, invalid_password):
6468 )
6569 def test_invalid_email_cases (self , _ , invalid_email ):
6670 test_data = {** self .valid_data , 'email' : invalid_email }
67- response = self .client .post (self .signup_url , test_data , format = 'json' )
71+ response = self .client .post (
72+ self .company_signup_url ,
73+ test_data ,
74+ format = 'json' ,
75+ )
6876 self .assertEqual (
6977 response .status_code ,
7078 rest_framework .status .HTTP_400_BAD_REQUEST ,
@@ -73,7 +81,11 @@ def test_invalid_email_cases(self, _, invalid_email):
7381
7482 def test_short_company_name (self ):
7583 test_data = {** self .valid_data , 'name' : 'A' }
76- response = self .client .post (self .signup_url , test_data , format = 'json' )
84+ response = self .client .post (
85+ self .company_signup_url ,
86+ test_data ,
87+ format = 'json' ,
88+ )
7789 self .assertEqual (
7890 response .status_code ,
7991 rest_framework .status .HTTP_400_BAD_REQUEST ,
@@ -90,8 +102,12 @@ class InvalidCompanyAuthenticationTestCase(
90102 ('empty_data' , {}, ['email' , 'password' ]),
91103 ],
92104 )
93- def test_missing_required_fields (self , case_name , data , expected_fields ):
94- response = self .client .post (self .signin_url , data , format = 'json' )
105+ def test_missing_required_fields (self , _ , data , expected_fields ):
106+ response = self .client .post (
107+ self .company_signin_url ,
108+ data ,
109+ format = 'json' ,
110+ )
95111 self .assertEqual (
96112 response .status_code ,
97113 rest_framework .status .HTTP_400_BAD_REQUEST ,
@@ -109,7 +125,7 @@ def test_signin_invalid_password(self):
109125 'password' : 'SuperInvalidPassword2000!' ,
110126 }
111127 response = self .client .post (
112- self .signin_url ,
128+ self .company_signin_url ,
113129 data ,
114130 format = 'json' ,
115131 )
0 commit comments