Skip to content

Added pytest for mocked database connection

Karsten Prehn requested to merge feature/test-database-connection into main

Using pytest-docker (https://pypi.org/project/pytest-docker/) and pytest-mock (https://pypi.org/project/pytest-mock/) to test the behavior of the TilesDatabase class. For now only testing that the connect_tiles_database() function returns the Postgres version when invoked without a parameter.

Also separated unit and integration tests as CI jobs, as well as in the file system with now respective directories in the tests directory.

\approve @marius @ds \fyi @fd

Merge request reports