2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00
Commit Graph

24 Commits

Author SHA1 Message Date
abeb85cbb3 Extend functionality of custom validation plugins (#4391)
* Pass "Part" instance to plugins when calling validate_serial_number

* Pass part instance through when validating IPN

* Improve custom part name validation

- Pass the Part instance through to the plugins
- Validation is performed at the model instance level
- Updates to sample plugin code

* Pass StockItem through when validating batch code

* Pass Part instance through when calling validate_serial_number

* Bug fix

* Update unit tests

* Unit test fixes

* Fixes for unit tests

* More unit test fixes

* More unit tests

* Furrther unit test fixes

* Simplify custom batch code validation

* Further improvements to unit tests

* Further unit test
2023-03-07 22:43:12 +11:00
93b6934127 fix trailing 2022-05-20 13:20:55 +02:00
70d4960fa3 Add new unit tests for part API filters 2022-04-26 11:43:34 +10:00
f9a0bf822e Add more fixture data
- Stock items for part 100 (Bob)
2022-04-02 09:54:55 +11:00
bff9f0828a Adds API endpoint to allocate stock items against a SalesOrder
- SalesOrderAllocations are no longer created manually
- API endpoint performs data validation
- Multiple line items can be allocated at once
- Adds unit testing for new API endpoint
2021-10-26 23:51:36 +11:00
979ef674d6 Update data for unit test fixtures 2021-06-22 13:24:03 +10:00
da02ab3eac Add unit testing for view 2021-01-05 00:01:44 +11:00
d1ce0f062e Improve unit testing for StockItem API 2021-01-04 01:22:43 +11:00
47cbf3071d Add option to add a single-quantity price-break when creating a new SupplierPart object
- Add unit testing!
2020-11-12 21:36:32 +11:00
2b91f69c7d Fix unit tests 2020-11-03 20:19:24 +11:00
911727f7b7 Update test fixtures
- Can't assume that pk values will be assigned sensibly!
- Need to hard-code them in
2020-09-02 19:47:07 +10:00
95d07cd02b Add unit testing for new API features 2020-05-17 14:14:54 +10:00
2d6c531fda Unit testing for part variant MPTT 2020-05-15 22:01:21 +10:00
0652579312 Update fixture for part model to match MPTT requirements 2020-05-15 21:44:25 +10:00
789712acbe Rename Build.URL -> Build.link 2020-04-06 11:28:35 +10:00
e4fc44c135 More test 2019-09-08 20:36:51 +10:00
43967e302b Add ablity to serialize an existing quantity of stock
- Do not have to serialize all the stock
- Add tests
- Add function to copy entire stock transaction history
2019-08-28 21:12:16 +10:00
bd61c89094 Tests for stock app views 2019-08-09 20:13:23 +10:00
ba26acd487 Rename some fields
- Oops didn't think that through, gotta go through and fix the data now...
2019-06-02 19:46:30 +10:00
f410957d8d Refactored Stock test to use fixtures 2019-05-12 21:46:38 +10:00
c0e3007e4f Add some BomItem tests
- Add a bom fixture
2019-05-04 23:50:24 +10:00
1f80e8c655 More tests for Part
- barcode
- category_path
2019-05-04 23:35:52 +10:00
ab6673caa3 Add tests for default location traversal 2019-05-04 23:20:59 +10:00
6d803d48b5 Add fixtures to the part test
- Make development of further tests much easier
2019-05-04 22:58:55 +10:00