Skip to content

Test Vet App

openapi_first.templates.vet_app.test_vet_app

End-to-end tests for the OpenAPI-first Veterinary Clinic example app.

These tests validate that all CRUD operations behave correctly against the in-memory mock data store using Pydantic models.

Classes

Functions

test_create_parent

test_create_parent()

Creating a parent returns 201 with the created entity.

test_create_pet

test_create_pet()

Creating a pet links FK references.

test_create_treatment

test_create_treatment()

Creating a treatment returns 201.

test_create_vet

test_create_vet()

Creating a vet returns 201.

test_delete_parent

test_delete_parent()

Delete parent returns 204 and removes the entity.

test_full_appointment_lifecycle

test_full_appointment_lifecycle()

Create a parent, vet, treatment, pet, then an appointment.

test_get_parent

test_get_parent()

Get parent by ID returns the entity.

test_list_appointments

test_list_appointments()

List appointments returns paginated response with filter params.

test_list_parents

test_list_parents()

List parents returns paginated response.

test_list_treatments

test_list_treatments()

List treatments returns an array.

test_list_vets

test_list_vets()

List vets returns paginated response.

test_update_parent

test_update_parent()

Update parent replaces its values.

test_upload_pet_photo

test_upload_pet_photo()

Upload pet photo returns 200.