Commit Graph

13248 Commits

Author SHA1 Message Date
Matthias
442341de50
split into more tests 2022-05-15 02:39:55 +02:00
Matthias
3e6b37bf55
Add test without simple_response 2022-05-15 02:35:06 +02:00
Matthias
8c6061d3b7
move failing test to seperate test 2022-05-15 02:32:26 +02:00
Matthias
aeaf15b374
Test action error messages 2022-05-15 02:25:30 +02:00
Matthias
9609d8ae09
Add tests for PLUGIN_ON_STARTUP 2022-05-15 01:59:07 +02:00
Matthias
abac26725b
use returns for checks 2022-05-15 01:47:44 +02:00
Matthias
640242eca3
Add tests for plugin installs form url with pkgn 2022-05-15 01:32:52 +02:00
Matthias
1cb51d1782
Do not cover custom install dirs 2022-05-15 01:29:50 +02:00
Matthias
76f92003fd
Fix assertation 2022-05-15 01:15:00 +02:00
Matthias
6660069f45
add docs 2022-05-15 01:10:46 +02:00
Matthias
39543555af
Add test for call_funciton 2022-05-15 01:10:23 +02:00
Matthias
43179bbfd5
remove coverage where it does not make sense 2022-05-15 01:07:50 +02:00
Matthias
38cb557baf
Add test for wrong key 2022-05-15 01:07:35 +02:00
Matthias
48d458698a
reduce lines 2022-05-15 01:06:56 +02:00
Matthias
d3cc698500
merge tests together 2022-05-15 01:05:49 +02:00
Matthias
2ae5fcf6a8
PEP fix 2022-05-15 00:46:56 +02:00
Matthias
40fa86152e
Add test for wrong token 2022-05-15 00:44:26 +02:00
Matthias
a1a1f4debe
PEP fix 2022-05-15 00:18:31 +02:00
Matthias
f8d3aedb1d
Remove static label tests
Fixes #2989
2022-05-15 00:14:54 +02:00
Matthias
2483b746cf
remove static test 2022-05-15 00:08:46 +02:00
Matthias
f3bf126415
maybe this ressource can be found in the cloud 2022-05-14 00:11:18 +02:00
Matthias Mair
bf2b9d2beb
Update test_middleware.py 2022-05-13 19:37:09 +02:00
Matthias
53712c2d6c
PEP fix 2022-05-13 01:29:32 +02:00
Matthias
3712daca55
remove duplicate code
we are already checking this stuff from line 640
2022-05-13 01:27:40 +02:00
Matthias
80a2dad34e
remove dead code 2022-05-13 01:23:25 +02:00
Matthias
6b550e0547
Tests for token Auth 2022-05-13 01:23:12 +02:00
Matthias
a7a80da928
Add unittests for auth stack
Fixes #2980
2022-05-13 01:22:51 +02:00
Matthias
47673c293e
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-app-refactor 2022-05-12 23:45:12 +02:00
Oliver
c2dd8afea6
Merge pull request #2981 from SchrodingersGat/model-setting-reference
Add settings which reference *model instances* allowing better lookup of models
2022-05-12 17:59:56 +10:00
Oliver
c4fa72e54c PEP style fixes 2022-05-12 17:30:52 +10:00
Oliver
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
Oliver
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
Oliver
a68db90240
Merge pull request #2978 from SchrodingersGat/convert-to-variant-fix
Convert to variant fix
2022-05-12 15:42:22 +10:00
Oliver
59cf9825fe Update comment 2022-05-12 15:16:26 +10:00
Oliver
47ddafb728 Fix edge case when converting stock item to variant
- If the stock item had been created as part of a Build Order, and subsequently "converted" to a variant part, the conversion operation will fail
- Patch allows the build reference to be linked based on either the base part, or any conversion options
2022-05-12 15:15:51 +10:00
Oliver
56f36d4b4b
Merge pull request #2977 from SchrodingersGat/table-downloader
Adding "download" buttons for more tables
2022-05-12 13:27:11 +10:00
Oliver
8edc0cc893 PEP fixes 2022-05-12 12:47:25 +10:00
Oliver
a83c3289b7 Merge remote-tracking branch 'inventree/master' into table-downloader 2022-05-12 12:44:26 +10:00
Oliver
c89547f58c Adds exporter and download functionality for BuildOrder table 2022-05-12 12:44:15 +10:00
Oliver
e3508f99d9
Merge pull request #2976 from SchrodingersGat/auth-middleware-fix
Do not redirect requests for media / static / api / js files
2022-05-12 12:05:02 +10:00
Oliver
d0ddb47b1f Adds exporter and download button for sales orders 2022-05-12 11:44:05 +10:00
Oliver
1b1f7634b7 Adds exporter and download button for PurchaseOrder table 2022-05-12 11:41:25 +10:00
Oliver
465e69c254 Refactor exporters for:
- Part
- PurchaseOrderLineItem
2022-05-12 11:33:17 +10:00
Oliver
a77d4b97b4 Refactor stock_list endpoint to use the new mixin 2022-05-12 11:29:33 +10:00
Oliver
650d082eca Bump API version 2022-05-12 11:23:58 +10:00
Oliver
774bfdb9e7 Adds APIDownloadMixin class to implement common behaviour 2022-05-12 11:22:34 +10:00
Oliver
21d2b54afe Fix CI step 2022-05-12 11:00:43 +10:00
Oliver
aa9ee15fb4 Fix CI pipeline for python checks
- Recently updated the python binding test framework
2022-05-12 10:52:53 +10:00
Oliver
151f2cae6f Do not redirect requests for media / static / api / js files
- For these paths, just return a 401
- This is necessary to stop unauthorized calls to the API or to request media files from redirecting to the login page
2022-05-12 10:45:30 +10:00
Matthias Mair
af8bddf690
fix boolean comp 2022-05-12 02:30:37 +02:00