MobilityData / mobility-feed-api

Apache License 2.0
8 stars 3 forks source link

Testing improvement: Add integration tests with controlled data #488

Closed jcpitre closed 2 months ago

jcpitre commented 3 months ago

Describe the problem

In #448, it was proposed to add new test framework that would consists of integration tests using controlled data and an actual database.

Proposed solution

The DB would be filled with:

Note that you can refer to populate_db_test_data.py for code that fills a DB from a json file.

The test DB should be hosted either on a local Docker container, that would let us run it from the command line, or on GCP or Github when run from a Github action.

Alternatives you've considered

No response

Additional context

No response

davidgamez commented 3 months ago

Tasks: