Saltar a contenido

Tests

🧪 Test Suite for Animals API.#

This module contains tests for the Animals API endpoints. It verifies the following: - ✅ The behavior of the API when the database is empty. - 🐾 Create animal records. - ✏️ Update animal records. - 🗑️ Delete animal records. - 🔍 Validation of input data for animal records.

test_animal_validation(rest_api) #

🔍 Test validation of animal inputs.

test_create_animal(rest_api) #

🐾 Test creating animal records.

test_delete_animal(rest_api) #

🗑️ Test deleting animal records.

test_empty_database(rest_api) #

🗃️ Tests the API with an empty database.

test_update_animal(rest_api) #

✏️ Test updating animal records.