It would be great to have some kind of test suite, so we know that no regressions are made.
Does anyone have experience of testing Python APIs?
Should there be unit tests?
Should there be integration tests, calling the top-level controller functions with a mocked HTTP request and maybe a mocked database?
Should there be full end-to-end tests, making a real HTTP against the API with a real database?
It would be great to have some kind of test suite, so we know that no regressions are made.
Does anyone have experience of testing Python APIs?
Should there be unit tests? Should there be integration tests, calling the top-level controller functions with a mocked HTTP request and maybe a mocked database? Should there be full end-to-end tests, making a real HTTP against the API with a real database?