margyle / decaf

Decaf: Does Every Coffee Action, Friend
26 stars 10 forks source link

Test suite #20

Open jjok opened 5 years ago

jjok commented 5 years ago

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?

margyle commented 5 years ago

I actually just ran through a pretty in depth Python testing course. Will start documenting some of my thoughts plans on it this week.