FaceRec icon indicating copy to clipboard operation
FaceRec copied to clipboard

Feature Request: Testing for `recognise_face()` Endpoint

Open Devasy opened this issue 2 years ago • 0 comments

Feature Request: Testing for recognise_face() Endpoint

Description

Once the recognise_face() endpoint is implemented, we need to create pytest tests to ensure it's working as expected. These tests should cover various scenarios, including successful face recognition, failure due to no matching face in the database, and failure due to invalid input.

Expected Behavior

The tests should confirm that the recognise_face() endpoint correctly identifies a face from a base64 string, returns the correct employee information, and handles errors appropriately.

Benefits

Testing is crucial to ensure the reliability and stability of our application. By testing the recognise_face() endpoint, we can catch any bugs or issues early and ensure that it's working as expected before it's deployed.

Tasks

  • [ ] Write a test to verify that the recognise_face() endpoint correctly identifies a face and returns the correct employee information.
  • [ ] Write a test to verify that the recognise_face() endpoint returns an appropriate error when there is no matching face in the database.
  • [ ] Write a test to verify that the recognise_face() endpoint returns an appropriate error when the input is invalid.
  • [ ] Run the tests and fix any issues that are identified.
  • [ ] Update the testing documentation to include the new tests.

Devasy avatar Mar 12 '24 17:03 Devasy