vaphes / pocketbase

PocketBase client SDK for python
https://pypi.org/project/pocketbase/
MIT License
332 stars 38 forks source link

Add integration test against a sandboxed running real-world pocketbase instance #26

Closed m29h closed 1 year ago

m29h commented 1 year ago

Hi, I added now a total of 53 extra integration tests that can run against a sandboxed pocketbase database instance. Documentation for how to start a sandbox is in README.md and required tooling scripts are in the same folder as the tests

The sandbox script download pocketbase executable from the official repository and executes it in a temporary folder. This allows to run pytests against this instance in order to verify the whole set of possible workflows.

The tests reveal several bugs in the current vaphes/master I can fix them in a seperate PR. I removed all bugfixes that so this PR only adds additional tests without changing the pocketbase library at all. I have already bugfixes for all 11 failing tests ready.

Best, Martin

m29h commented 1 year ago

Just rebased to current vaphes/master and added the GitHub action to generate this fancy coveralls.io badge. Coverage Status

Am I really the only one here that likes the idea to use+add integration tests?