File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ def test_fetch_service_list_for_staff(self):
339
339
)
340
340
341
341
def test_fetch_service_list_for_staff_no_staff_member_instance (self ):
342
- """Test that a superuser without a StaffMember instance receives an appropriate error message."""
342
+ """Test that a superuser without a StaffMember instance receives no inappropriate error message."""
343
343
self .need_superuser_login ()
344
344
345
345
# Ensure the superuser does not have a StaffMember instance
@@ -349,11 +349,9 @@ def test_fetch_service_list_for_staff_no_staff_member_instance(self):
349
349
response = self .client .get (url , HTTP_X_REQUESTED_WITH = 'XMLHttpRequest' )
350
350
351
351
# Check the response status code and content
352
- self .assertEqual (response .status_code , 400 )
352
+ self .assertEqual (response .status_code , 200 )
353
353
response_data = response .json ()
354
354
self .assertIn ('message' , response_data )
355
- self .assertEqual (response_data ['message' ], _ ("You're not a staff member. Can't perform this action !" ))
356
- self .assertFalse (response_data ['success' ])
357
355
358
356
def test_fetch_service_list_for_staff_no_services_offered (self ):
359
357
"""Test fetching services for a staff member who offers no services."""
You can’t perform that action at this time.
0 commit comments