2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00
Commit Graph

114 Commits

Author SHA1 Message Date
a52ba05eb7 Add unit test for PartCategory API endpoints 2022-05-16 21:19:01 +10:00
37a74dbfef Adds a metadata serializer class for accessing instance metadata via the API
- Adds endpoint for Part
- Adds endpoint for PartCategory
- Adds endpoint for StockItem
- Adds endpoint for StockLocation
2022-05-16 20:59:09 +10:00
55f87033b2 Add unit tests for .webp support 2022-05-15 23:36:41 +10:00
ee47be4c9e Add unit test for 'available_variant_stock' in BomItem API serializer 2022-04-26 17:05:21 +10:00
7aaa4a5812 add unit tests for new variant_stock annotations 2022-04-26 16:39:03 +10:00
70d4960fa3 Add new unit tests for part API filters 2022-04-26 11:43:34 +10:00
b7937a4750 Add some more unit tests for BOM API endpoints 2022-04-09 19:22:12 +10:00
78ed5d9cc4 Some more API unit tests 2022-04-08 21:59:59 +10:00
8ab54c8e55 Add more unit tests 2022-04-08 21:39:41 +10:00
271cb3f8b1 Rebuild tree structure before running unit tests! 2022-04-02 13:26:39 +11:00
fb0b87db3d Further unit test fixes 2022-04-02 12:00:08 +11:00
4593b0f412 Unit test fixes 2022-04-02 11:12:54 +11:00
484a0693d7 Check that the sales_order_allocations information is provided in the API endpoint 2022-04-02 10:25:38 +11:00
57be4b337d Check that new annotated fields exist in the API dataset 2022-04-02 09:55:37 +11:00
7793a22a35 ignore wrong control view safeties 2022-02-13 05:48:10 +01:00
28dc417a9f Add unit testing for 'validated' filter 2021-11-24 10:52:20 +11:00
c04ea3e0bb Adds unit test for "validated" filter option on BomItem list 2021-11-24 10:41:19 +11:00
d884e62be1 [FR] Confirm to W293
Fixes #2335
2021-11-23 00:28:23 +01:00
e36b4458bd PEP fixes 2021-11-15 23:58:34 +11:00
a9852355c4 Add a unit test 2021-11-15 22:28:09 +11:00
c7cec13076 Bug fix 2021-10-13 23:18:44 +11:00
f3074e8f34 Improved unit testing for BomItem
- tests for allowing variant parts
- tests for allowing substitutes
2021-10-13 23:18:26 +11:00
e7d78db87b Fixes for unit tests 2021-10-05 10:53:11 +11:00
e7963f8a85 test fixes 2021-09-17 21:06:07 +10:00
11cc0c7ced Adds a test for non-standard characters via API 2021-09-17 20:53:18 +10:00
2b13512145 Check that supplier and manufacturer parts are created 2021-08-14 10:43:45 +10:00
6fa4e33062 Unit testing for new API form features 2021-08-14 10:39:05 +10:00
c7712d4235 even more unit tests 2021-08-05 01:13:48 +10:00
cbf0e0bd4a Refactor forms for editing and deleting a PartParameter
- PartParameters now loaded using the API, not pre-rendered
2021-07-09 01:56:04 +10:00
4aed6993d4 Add some more unit tests 2021-06-29 19:48:49 +10:00
da6d170ce2 Add 'help_text' for related fields 2021-06-29 19:39:45 +10:00
34a374ce9a Add try/except around callable default 2021-06-27 01:18:09 +10:00
0cc999410b More unit test fixes 2021-06-27 01:03:54 +10:00
232899e0c4 Simpler implementation 2021-06-27 00:25:23 +10:00
ae1a1e139f Further fixes for default API values
- Account for callable defaults
- Extra check in is_valid()
2021-06-27 00:01:40 +10:00
ddbf863617 Merge remote-tracking branch 'inventree/master' into api-default-values
# Conflicts:
#	InvenTree/InvenTree/serializers.py
2021-06-26 21:04:41 +10:00
5ba7aeaa27 Fixes:
- Use DRF ImageField, not FileField
- Ensure that permissions get updated correctly in 'test' mode
- Allow file upload in the APITester class
2021-06-23 10:28:21 +10:00
eae9ff7d1d More unit test fixes 2021-06-22 11:54:18 +10:00
9475af62ae Style fixes 2021-06-22 10:12:44 +10:00
c62ba5eb12 Perform a "full_clean" on serialized model
- DRF does not by deault run validate_unique on the model
- Need to check if we are "creating" or "updating" a model
- Catch and re-throw errors in the correct format
- Unit tests
2021-06-22 10:09:19 +10:00
8fd41f5ecf Unit testing for default values 2021-06-21 21:46:22 +10:00
f2b0717d10 removes all lines consisting only of spaces
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
4d1eb51bc4 Fixes 2021-04-20 20:42:55 +10:00
8a06eaa40d Unit testing 2021-04-11 19:28:39 +10:00
9f9629edb3 Fix for unit test 2021-03-01 11:21:18 +11:00
90feb6d210 Server-side paginatino for build orders 2021-02-28 20:31:01 +11:00
b315b958b0 PEP fixes 2021-02-27 07:56:38 +11:00
ee744be5fe Refactor API unit tests for part 2021-02-26 21:45:37 +11:00
ae7fbd6112 Add PEP8-naming extension for flake
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
f560be1a9a Bug fix: Part thumbnail API list was not working
- Part images could not be selected from grid
2020-11-04 15:41:17 +11:00