Commit Graph

58 Commits

Author SHA1 Message Date
Oliver Walters
b7937a4750 Add some more unit tests for BOM API endpoints 2022-04-09 19:22:12 +10:00
Oliver Walters
78ed5d9cc4 Some more API unit tests 2022-04-08 21:59:59 +10:00
Oliver Walters
8ab54c8e55 Add more unit tests 2022-04-08 21:39:41 +10:00
Oliver Walters
271cb3f8b1 Rebuild tree structure before running unit tests! 2022-04-02 13:26:39 +11:00
Oliver Walters
fb0b87db3d Further unit test fixes 2022-04-02 12:00:08 +11:00
Oliver Walters
4593b0f412 Unit test fixes 2022-04-02 11:12:54 +11:00
Oliver Walters
484a0693d7 Check that the sales_order_allocations information is provided in the API endpoint 2022-04-02 10:25:38 +11:00
Oliver Walters
57be4b337d Check that new annotated fields exist in the API dataset 2022-04-02 09:55:37 +11:00
Matthias
7793a22a35
ignore wrong control view safeties 2022-02-13 05:48:10 +01:00
Oliver
28dc417a9f Add unit testing for 'validated' filter 2021-11-24 10:52:20 +11:00
Oliver
c04ea3e0bb Adds unit test for "validated" filter option on BomItem list 2021-11-24 10:41:19 +11:00
Matthias
d884e62be1
[FR] Confirm to W293
Fixes #2335
2021-11-23 00:28:23 +01:00
Oliver
e36b4458bd PEP fixes 2021-11-15 23:58:34 +11:00
Oliver
a9852355c4 Add a unit test 2021-11-15 22:28:09 +11:00
Oliver
c7cec13076 Bug fix 2021-10-13 23:18:44 +11:00
Oliver
f3074e8f34 Improved unit testing for BomItem
- tests for allowing variant parts
- tests for allowing substitutes
2021-10-13 23:18:26 +11:00
Oliver
e7d78db87b Fixes for unit tests 2021-10-05 10:53:11 +11:00
Oliver
e7963f8a85 test fixes 2021-09-17 21:06:07 +10:00
Oliver
11cc0c7ced Adds a test for non-standard characters via API 2021-09-17 20:53:18 +10:00
Oliver
2b13512145 Check that supplier and manufacturer parts are created 2021-08-14 10:43:45 +10:00
Oliver
6fa4e33062 Unit testing for new API form features 2021-08-14 10:39:05 +10:00
Oliver Walters
c7712d4235 even more unit tests 2021-08-05 01:13:48 +10:00
Oliver
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
Oliver
4aed6993d4 Add some more unit tests 2021-06-29 19:48:49 +10:00
Oliver
da6d170ce2 Add 'help_text' for related fields 2021-06-29 19:39:45 +10:00
Oliver Walters
34a374ce9a Add try/except around callable default 2021-06-27 01:18:09 +10:00
Oliver Walters
0cc999410b More unit test fixes 2021-06-27 01:03:54 +10:00
Oliver Walters
232899e0c4 Simpler implementation 2021-06-27 00:25:23 +10:00
Oliver Walters
ae1a1e139f Further fixes for default API values
- Account for callable defaults
- Extra check in is_valid()
2021-06-27 00:01:40 +10:00
Oliver
ddbf863617 Merge remote-tracking branch 'inventree/master' into api-default-values
# Conflicts:
#	InvenTree/InvenTree/serializers.py
2021-06-26 21:04:41 +10:00
Oliver
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
Oliver
eae9ff7d1d More unit test fixes 2021-06-22 11:54:18 +10:00
Oliver
9475af62ae Style fixes 2021-06-22 10:12:44 +10:00
Oliver
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
Oliver
8fd41f5ecf Unit testing for default values 2021-06-21 21:46:22 +10:00
Matthias
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
Oliver Walters
4d1eb51bc4 Fixes 2021-04-20 20:42:55 +10:00
Oliver Walters
8a06eaa40d Unit testing 2021-04-11 19:28:39 +10:00
Oliver Walters
9f9629edb3 Fix for unit test 2021-03-01 11:21:18 +11:00
Oliver Walters
90feb6d210 Server-side paginatino for build orders 2021-02-28 20:31:01 +11:00
Oliver Walters
b315b958b0 PEP fixes 2021-02-27 07:56:38 +11:00
Oliver Walters
ee744be5fe Refactor API unit tests for part 2021-02-26 21:45:37 +11:00
Oliver Walters
ae7fbd6112 Add PEP8-naming extension for flake
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
Oliver Walters
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
Oliver Walters
b3e4efd96e Unit testing fixes 2020-10-06 16:03:19 +11:00
Oliver Walters
3f59ce3f93 Update unit tests
- requires the user to actually have the necessary permissions!
2020-10-06 01:30:36 +11:00
Oliver Walters
f7ad38dad5 Add unit tests for new aggregation annotation approach 2020-09-05 23:28:54 +10:00
Oliver Walters
95d07cd02b Add unit testing for new API features 2020-05-17 14:14:54 +10:00
Oliver Walters
ea88a03b5a More serial number validation and unit testing
-
2020-05-16 08:43:57 +10:00
Oliver Walters
7503596ea4 More fixes
- Add a set of template tags for rendering status codes
- Improve build API filtering
- Remove some outdated files
- Fix unit testing
2020-04-12 00:10:33 +10:00