[Clients] - Implement CRUD Operations to Pass Tests #99

Closed
opened 2025-11-03 17:38:53 +00:00 by GFMpt13 · 0 comments
GFMpt13 commented 2025-11-03 17:38:53 +00:00 (Migrated from github.com)

This is the main development task. Fill in the logic for the interface methods created in the first sub-issue until all tests written in the second sub-issue pass.

Tasks:

  • Implement create_client (using Client(**data).save()).
  • Implement get_client_by_id (using Client.get()).
  • Implement get_client_by_nif (using Client.find_one()).
  • Implement update_client (finding the client, applying updates, and saving).
  • Implement delete_client (finding the client and calling delete()).
  • Run pytest and confirm all tests now pass.
This is the main development task. Fill in the logic for the interface methods created in the first sub-issue until all tests written in the second sub-issue pass. **Tasks:** - [x] Implement `create_client` (using `Client(**data).save()`). - [x] Implement `get_client_by_id` (using `Client.get()`). - [x] Implement `get_client_by_nif` (using `Client.find_one()`). - [x] Implement `update_client` (finding the client, applying updates, and saving). - [x] Implement `delete_client` (finding the client and calling `delete()`). - [x] Run `pytest` and confirm all tests now pass.
Sign in to join this conversation.
No description provided.