Closed ananya-muralidhar closed 2 weeks ago
I think the tile can be more specific like Suspended a Customer Account.
What you think adding
def test_deactivate_customer_not_found(self):
"""It should not Deactivate a Customer that doesn't exist"""
response = self.client.put(f"{BASE_URL}/0/deactivate")
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
to the TestSadPaths?
Description: -As a Customer Manager, -I need the ability to suspend a customer account, -So that I can prevent the customer from using the service.
Details and Assumptions: -Suspending an account will update the customer's status in the PostgreSQL database to "suspended." -The customer should no longer be able to log in or make transactions.
Acceptance Criteria: -Given a customer exists in the system, -When I suspend the customer account, -Then the customer’s account status should be updated in the database, And the customer should no longer be able to perform actions in the system.