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: GetZoningDistrictClassesByTaxLotBbl, e2e and service unit #156

Closed TangoYankee closed 8 months ago

TangoYankee commented 9 months ago

Description

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

(This endpoint is within the tax lot domain and accepts a tax lot bbl. However, it returns zoning-district-classes. 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-district-classes 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 #155 which will create the checkTaxLotByBbl mock method blocked by #151 which will create the required zoning district class entity schema