[Vehicles] Test Setup (Mock) #194
Labels
No labels
CI/CD
MongoDB
PostgreSQL
api
authentication
bug
documentation
duplicate
enhancement
example issue
fix
good first issue
help wanted
high-level requirement
infrastructure
invalid
low-level requirement
medium-level requirement
question
security
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/starranja#194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create
tests/test_routes/test_vehicles.py.Configure
AsyncMockforVehicleRepo.Test Create:
test_create_vehicle_success(201 Created).test_create_vehicle_duplicate(Mock repo raisingDuplicateVehicleError, expect 409).Test Read:
test_get_vehicle_by_id_success(200 OK).test_get_vehicle_by_id_not_found(Expect 404).Test Read (Filters):
test_get_vehicle_by_license_plate(Mockrepo.get_by_license_plate, expect 200).test_get_vehicles_by_client(Mockrepo.get_by_client_id, expect 200).Test Update:
test_update_vehicle_km_success(200 OK - Updates kilometers).test_update_vehicle_not_found(Expect 404).Test Delete:
test_delete_vehicle_success(204 No Content).this issue has already been integrated in the maion branch, closing...