2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00
Commit Graph

665 Commits

Author SHA1 Message Date
840ade25cd Label printing unit test (#3047)
* Adds a very simple sample plugin for label printing

* Test mixin install status and API query

* Better error reporting for label printing API

* pep fixes

* fix assertation

* remove broken assertation

* igonre for coverage

* test the base process of printing

* refactor tests

* clean up basic test

* refactor url

* fix url creation

* test printing multiples

* test all printing endpoints

* test all list options - move api tests

* test for invalid filters

* refactor

* test with no part

* these should not happen
checks are in place upstream

* fix assertation

* do not cover continue parts

* test for wrong implementation

* ignore DB not ready

* remove covage from default parts

* fix url generation

* test debug mode

* fix url assertation

* check that nothing was rendered

Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2022-05-23 08:54:44 +10:00
6247eecf69 Exclude testing exceptions from coverage (#3046)
* exclude testing excetions

* check user str

* check related users

* move no coverage marker

* fix assertation

* add test for filters

* do not cover logs
2022-05-22 15:54:13 +10:00
5805685c48 Merge branch 'master' of https://github.com/inventree/InvenTree into style-fixes 2022-05-21 23:57:41 +02:00
22adc37242 fix import 2022-05-21 02:40:45 +02:00
e1ff4b6e87 more class use 2022-05-20 23:01:20 +02:00
45a9a4d0c5 add in missing class references 2022-05-20 17:55:11 +02:00
799af89312 style fixes 2022-05-20 17:45:04 +02:00
a148dbf303 refactor 'all' role 2022-05-20 17:43:51 +02:00
c50456297e fix assertation 2022-05-20 17:27:08 +02:00
e1d22f538d resort imports 2022-05-20 17:24:51 +02:00
3a1996dd48 PEP fix 2022-05-20 12:32:25 +02:00
0d5dea3e6d refactor test setup 2022-05-20 12:12:32 +02:00
07319731d2 Validate that errors get logged 2022-05-19 13:20:42 +10:00
80e3d0970a Adds unit tests for the samplepanel plugin 2022-05-19 11:28:18 +10:00
11b21a9cca Allow registry.with_mixin to filter by active status 2022-05-19 11:00:31 +10:00
ebcb9685b5 Updates to samplepanel plugin
- Enhanced content for "hello world" panel
- Add an optional panel which breaks rendering
2022-05-19 10:04:20 +10:00
14b60cdedc Custom panel content gets passed through the templating engine 2022-05-19 10:03:44 +10:00
7d9690b974 Add logging message when plugin fails to render custom panels 2022-05-19 09:53:12 +10:00
9446702d78 Skip plugin loading for various database admin functions 2022-05-19 09:45:16 +10:00
c6590066b8 Add tests for successful location
- Sample plugin now updates metadata tag
2022-05-18 22:46:15 +10:00
dd476ce796 Add unit tests for the 'locate' plugin
- Test various failure modes
- Some of the failure modes didn't fail - this is also a failure
- Fixing API code accordingly
2022-05-18 22:20:29 +10:00
0e0ba66b9a Fix broken calls to offload_task 2022-05-18 21:40:53 +10:00
4ceb35a43f Fix PEP issue 2022-05-18 17:00:20 +10:00
6147afe35f Catch errors when rendering custom plugin panels 2022-05-18 16:54:57 +10:00
9bcbaaa5f5 Remove more python2 stuff 2022-05-17 16:57:31 +10:00
fb55f5d2a2 convert remaining function 2022-05-17 01:32:08 +02:00
c51f052f25 Merge pull request #3011 from matmair/matmair/issue2996
Remove python 2 code
2022-05-17 00:51:31 +10:00
31667020ae Merge pull request #3004 from SchrodingersGat/events-fix
Add required imports to plugin.events
2022-05-16 23:05:45 +10:00
042cb021de Merge pull request #2957 from SchrodingersGat/locate-mixin
Adds plugin mixin to "locate" items
2022-05-16 22:57:20 +10:00
73413baa59 Add required imports to plugin.events 2022-05-16 22:01:34 +10:00
bd17458f37 Add metadata endpoints for SalesOrder and PurchaseOrder models 2022-05-16 21:40:10 +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
57d481a8b8 Merge pull request #2999 from matmair/fix-todos
Fix Todo texts
2022-05-16 09:16:34 +10:00
74a3abc4a2 make args wider 2022-05-15 23:26:46 +02:00
ecccfbd546 Remove encoding header
Fixes #2996
2022-05-15 20:33:00 +02:00
9c342e1fe3 fix definition 2022-05-15 20:06:07 +02:00
a8d3ee15bf fix func definition 2022-05-15 20:05:56 +02:00
cced30c081 pass through request data 2022-05-15 18:41:39 +02:00
23608e6933 remove unneeded args 2022-05-15 18:36:33 +02:00
d9fe7ac272 general Todo - no specific task
removed therefore
2022-05-15 18:09:39 +02:00
f4fbd57e6e errors fail whole plugins now so no saving 2022-05-15 18:09:05 +02:00
45d70737bd we do not have server stats checks so this does not make sende 2022-05-15 18:08:42 +02:00
9e590c1bc6 this seems fine - just keep it that way 2022-05-15 18:06:32 +02:00
c7a2d11893 refactor to make simpler 2022-05-15 18:02:12 +02:00
ca0508f2f0 update to https to match hotspots 2022-05-15 17:22:58 +02:00
076098a0e0 use static reference
this is stupid but is required
2022-05-15 16:50:17 +02:00
28b811d961 PEP style fixes 2022-05-16 00:47:00 +10:00
0c0b2efbe0 raise error 2022-05-15 16:46:05 +02:00
097afed78e Adds metadata mixin class for adding JSON field to internal tables
- Add metadata field to stocklocation
- Add metadata field to stockitem
2022-05-16 00:45:16 +10:00
818be32e31 Move location plugin sample into its own directory 2022-05-16 00:35:34 +10:00