MobilityData / mobility-feed-api

Apache License 2.0
8 stars 3 forks source link

Testing improvement: Verify that the schema of /v1/search response is correct #487

Open jcpitre opened 2 weeks ago

jcpitre commented 2 weeks ago

Describe the problem

In #448 we did a survey of missing automatic tests for the API. Here is one of these tests:

The response should be a combination of gtfs and gtfs_rt feed schemas. Verify that some fields are null depending on the type of result e.g. latest_dataset should be null for gtfs_rt type, entity_types should be null for gtfs type.

Proposed solution

Add the tests

Alternatives you've considered

No response

Additional context

No response