InvenTree/InvenTree/report
miggland 5c7d3af150
Add tests for report API (#6214)
* Add tests for report api

* Add test for delete endpoint

* Use pk in reverse call

* Allow kwargs in APITestCase methods

* Data is in response.data

* Fix comment

* Use expected_code argument instead of separate check

* Test with superuser

* Negative indexing not allowed, try with this alternative

* Looking for what went wrong..

* APITestCase does not work like Python requests - change POST calls

* Upload success is code 201

* In PATCH method, change test file and description as well

* Add test for get_api_url method

* Change format parameter for file upload

* Copy tests for report API over to label API

* Add test model for BuildLineLabel

* Update tests

* Make example template valid

* Add methods for testing label printing
2024-01-17 06:55:55 +11:00
..
migrations Report orientation (#5678) 2023-10-09 13:25:53 +11:00
templates/report Report image rendering fix (#5907) 2023-11-14 12:08:18 +11:00
templatetags [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
__init__.py Add "report" app 2020-05-21 13:51:13 +10:00
admin.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
api.py Fix URL regex (#6218) 2024-01-12 23:49:50 +11:00
apps.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
helpers.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
models.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
serializers.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
tests.py Add tests for report API (#6214) 2024-01-17 06:55:55 +11:00