Unit Tests - Recent Occurrences Endpoint
Vanethos opened this issue · 0 comments
Vanethos commented
Description
Unit tests for the endpoint GET
{{base_url}}/occurrences
Pre-Requisites
Unit-Tests
- Creating the model via a JSON Response
- Calling the endpiint and mocking a 200 response with a valid response
- Calling the endpoint and mocking a 200 response with an invalid response
- Calling the endpoint and mocking a 400 response
- Verify that calling the api with a mock response creates the expected object