feat: show catch method on spot detail

This commit is contained in:
ik
2026-09-21 07:42:43 +07:00
parent 10d43013f7
commit eeef4bb536
3 changed files with 7 additions and 2 deletions
+4
View File
@@ -270,6 +270,10 @@ def test_spot_detail_and_catches() -> None:
assert len(catches.json()) == 3
assert catches.json()[0]["source_system"] == "manual-import"
assert catches.json()[0]["fishing_method"] == "spinning"
fixture = client.get("/api/v1/spots/resolve?waterbody=test-lake&x=10&y=20")
assert fixture.status_code == 200
fixture_catches = client.get(f"/api/v1/spots/{fixture.json()['id']}/catches")
assert fixture_catches.json()[0]["fishing_method"] == "spinning"
resolved = client.get("/api/v1/spots/resolve?waterbody=test-lake&x=10&y=20")
assert resolved.status_code == 200
assert resolved.json()["id"] == spot_id