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

665 Commits

Author SHA1 Message Date
eebdad154a PEP fixes 2022-05-16 00:12:33 +10:00
95dbfa1958 Merge remote-tracking branch 'inventree/master' into locate-mixin
# Conflicts:
#	InvenTree/InvenTree/api.py
#	InvenTree/InvenTree/urls.py
#	InvenTree/plugin/base/integration/mixins.py
#	InvenTree/plugin/mixins/__init__.py
2022-05-16 00:10:38 +10:00
fa954b3812 Merge remote-tracking branch 'inventree/master' into locate-mixin
# Conflicts:
#	InvenTree/InvenTree/api_version.py
#	InvenTree/InvenTree/urls.py
2022-05-15 23:44:07 +10:00
dcbd9d906b Update errors 2022-05-15 04:47:45 +02:00
897dd115f9 PEP fix 2022-05-15 04:14:13 +02:00
b0439267ea fix error-type to use custom errors 2022-05-15 04:12:57 +02:00
025c6f9b82 raise proper error 2022-05-15 04:08:45 +02:00
7a102dcd8e PEP fix 2022-05-15 03:22:43 +02:00
976cbfbb8b remove old definition 2022-05-15 03:20:11 +02:00
5048d51558 Refactor printer into own base dir 2022-05-15 03:19:47 +02:00
43b1d25016 PEP fix 2022-05-15 03:06:35 +02:00
4fa23cbe4d split up tests 2022-05-15 02:58:01 +02:00
777e3f42df fix test 2022-05-15 02:57:23 +02:00
68940deb5b rename test 2022-05-15 02:56:05 +02:00
e68cd009f6 fix input 2022-05-15 02:54:21 +02:00
eb7e9f4703 test url args in action 2022-05-15 02:49:08 +02:00
7abdffae0d Add post test 2022-05-15 02:48:59 +02:00
7c0dea69b0 add test for api_call with full url 2022-05-15 02:42:40 +02:00
039dbbbe7e fix doctest 2022-05-15 02:40:23 +02:00
442341de50 split into more tests 2022-05-15 02:39:55 +02:00
3e6b37bf55 Add test without simple_response 2022-05-15 02:35:06 +02:00
8c6061d3b7 move failing test to seperate test 2022-05-15 02:32:26 +02:00
aeaf15b374 Test action error messages 2022-05-15 02:25:30 +02:00
abac26725b use returns for checks 2022-05-15 01:47:44 +02:00
640242eca3 Add tests for plugin installs form url with pkgn 2022-05-15 01:32:52 +02:00
1cb51d1782 Do not cover custom install dirs 2022-05-15 01:29:50 +02:00
76f92003fd Fix assertation 2022-05-15 01:15:00 +02:00
6660069f45 add docs 2022-05-15 01:10:46 +02:00
39543555af Add test for call_funciton 2022-05-15 01:10:23 +02:00
43179bbfd5 remove coverage where it does not make sense 2022-05-15 01:07:50 +02:00
47673c293e Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-app-refactor 2022-05-12 23:45:12 +02:00
a81ea01e8e Model introspection
- Find the class registered to the model (or log an error)
- Pass the api_url through to the frontend
2022-05-12 17:28:55 +10:00
e112d555d4 Simplify the various settings objects, to improve retrieval of 'parameters' from the base class
- Remove the GenericReferencedSettingsClass mixin
- Each subclass defines a very simple get_kwargs() method
- Now, at object level *and* class level we can perform lookup of settings and actually get proper data back
- Adds "model" option to setting (precursor of things to come)
2022-05-12 16:45:27 +10:00
3d580e732f change test to slug 2022-05-12 00:51:02 +02:00
eaab905bfd reset plugin name default 2022-05-12 00:50:29 +02:00
bd42fea5fa another pep check 2022-05-12 00:07:19 +02:00
699db12b24 make test more precise 2022-05-12 00:04:37 +02:00
a6e889b25e pep fix 2022-05-12 00:04:29 +02:00
c809398bda Add check for IntegrationPluginBase depreciation 2022-05-12 00:01:23 +02:00
da3b7ae7d0 fix assertation typ 2022-05-11 23:57:21 +02:00
c274228806 fix test 2022-05-11 23:46:41 +02:00
8becad3c0a reset zero behaviour 2022-05-11 23:45:45 +02:00
c462399fef check if depreciation fires 2022-05-11 23:45:17 +02:00
2c83728f71 also check message 2022-05-11 23:27:42 +02:00
f8e51c0873 fix test 2022-05-11 23:21:42 +02:00
912d0625f0 PEP fix 2022-05-11 23:12:27 +02:00
432a9b2e4d add warning if plugin testing - is need to probe for 2022-05-11 23:12:21 +02:00
4397f57acc test that a save() action on a plugin is reloading 2022-05-11 23:11:54 +02:00
baca0dc268 do not cover error 2022-05-11 23:05:22 +02:00
8a91fc362b test plugin model more 2022-05-11 23:05:08 +02:00