Closed omnidynmc closed 2 years ago
Hi there @omnidynmc thanks for fixing this. Do you feel comfortable adding a testcase or two that covers this so we can make sure this keeps on working?
There is a small style error - pleas check the CI check for details.
@omnidynmc thanks for this addition! As @matmair says a simple test case for this would be very welcome :)
@omnidynmc any chance you would be able to add a small unit test for this new feature?
Regarding the failing unit tests - the tests are running fine but failing to upload the results. I am fixing that in a different PR.
When adding the limit= parameter to list it causes InvenTree to modify the output of the rest response to be a dict instead of a simple array of results. Inside of that dict includes a results array that inventree-python is actually looking for. Without this addition inventree-python will ignore the result and return an empty result set.