inventree / inventree-python

Python library for communication with inventree via API
https://docs.inventree.org/en/latest/api/python/python/
MIT License
26 stars 34 forks source link

Test setup #92

Closed SchrodingersGat closed 2 years ago

SchrodingersGat commented 2 years ago

Refactoring unit test setup to allow for simpler "local" testing setup.

This PR now allows local testing of the inventree-python bindings using a InvenTree server instance running in a docker container. Previously, setting up a local test installation was quite difficult.

This PR also removes the local test data fixture, and relies on the test fixtures shipped with the InvenTree server. The unit tests have also been robustified.

Closes https://github.com/inventree/inventree-python/issues/91