@@ -652,7 +652,6 @@ def test_update_day_off_unauthorized_user(self):
652
652
url = reverse ('appointment:update_day_off' , args = [self .day_off .id ])
653
653
response = self .client .post (url , {'start_date' : '2050-01-01' , 'end_date' : '2050-01-01' ,
654
654
'description' : 'Trying unauthorized update' }, 'json' )
655
- print (f"response: { response } " )
656
655
self .assertEqual (response .status_code , 403 ) # Expect forbidden error
657
656
658
657
def test_update_nonexistent_day_off (self ):
@@ -703,7 +702,6 @@ def test_get_request_with_valid_token(self):
703
702
"in database" )
704
703
response = self .client .get (self .valid_link )
705
704
self .assertEqual (response .status_code , 200 )
706
- print (f"response: { response } " )
707
705
self .assertContains (response , "form" )
708
706
self .assertNotContains (response , "The password reset link is invalid or has expired." )
709
707
@@ -729,9 +727,6 @@ def test_get_request_with_invalid_token(self):
729
727
response = self .client .get (invalid_token_link , follow = True )
730
728
self .assertEqual (response .status_code , 200 )
731
729
messages_ = list (get_messages (response .wsgi_request ))
732
- print (f"messages: { messages_ } " )
733
- for msg in messages_ :
734
- print (f"message: { msg } " )
735
730
self .assertTrue (
736
731
any (msg .message == _ ("The password reset link is invalid or has expired." ) for msg in messages_ ))
737
732
@@ -781,7 +776,6 @@ def test_valid_staff_member_selected(self):
781
776
response_data = response .json ()
782
777
self .assertTrue (response_data ['success' ])
783
778
self .assertEqual (response_data ['message' ], _ ('Successfully retrieved non-working days' ))
784
- print (f"Response data: { response_data } " )
785
779
self .assertIn ('non_working_days' , response_data )
786
780
self .assertTrue (isinstance (response_data ['non_working_days' ], list ))
787
781
0 commit comments