NYCPlanning / ae-zoning-api

This application is API for serving data related to zoning and tax lots.
2 stars 0 forks source link

Endpoint Testing: GetZoningDistrictsByTaxLotBbl, e2e and service unit #155

Closed TangoYankee closed 7 months ago

TangoYankee commented 7 months ago

Description

Write e2e tests and service unit tests for the GetZoningDistrictsByTaxLotBbl endpoint.

(This endpoint is within the tax lot domain and accepts a tax lot bbl. However, it returns zoning districts. In instances where we want to mock the return of an object based on its relationship to another we can use a tuple. A tuple of length two will "link" the two objects. See branch 118/unit-test for an example. We relate a tax lot to zoning districts by placing them in a tuple.)

Acceptance criteria

Related tickets

blocked by #147 which will create the required tax-lot repository mock and tax-lot entity schema blocked by #150 which will create the required zoning district entity schema