Matthias Mair and GitHub
1c6e5f0f20
More plugin testing ( #3052 )
...
* Add a check of a child panel too
* do not cover error catching
* test for implementation error
* Add warning to test for
* Add test for event_sample
* ignore safety switches
* Add a settings flag to enable event testing
* test if not implemented is raises
* raise plugin specific errors
* use plugin specific error
* fix assertation
* add test for mixin
* this point can't be reached
* add tests for locate plugin
* fix assertations
* fix function call
* refert switch
* this is already caught by the internal API
* also cover mixin redirect
2022-05-24 09:23:06 +10:00
Matthias Mair and GitHub
a7ef560ee3
remove dead code ( #3054 )
...
no references are found in the code
2022-05-24 09:20:59 +10:00
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
Matthias Mair and GitHub
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
Matthias Mair
5805685c48
Merge branch 'master' of https://github.com/inventree/InvenTree into style-fixes
2022-05-21 23:57:41 +02:00
Matthias Mair
22adc37242
fix import
2022-05-21 02:40:45 +02:00
Matthias Mair
e1ff4b6e87
more class use
2022-05-20 23:01:20 +02:00
Matthias Mair
43f714b96c
use variable for values and up the all
2022-05-20 19:57:13 +02:00
Matthias Mair
9af0b981e7
fix class to enable userlogin
2022-05-20 19:14:35 +02:00
Matthias Mair
6ef8c3dc83
run as admin
2022-05-20 19:11:21 +02:00
Matthias Mair
b7a501f42c
log out first
2022-05-20 19:09:51 +02:00
Matthias Mair
43a2442f02
add usermodel back in
2022-05-20 18:53:33 +02:00
Matthias Mair
556b7036aa
remove repo name from assertations
...
this breaks on other runners (gitlab, azure devops) as they handle repo names in another way
2022-05-20 18:42:41 +02:00
Matthias Mair
9b15d88d5f
fix rule assign
2022-05-20 18:34:45 +02:00
Matthias Mair
45a9a4d0c5
add in missing class references
2022-05-20 17:55:11 +02:00
Matthias Mair
799af89312
style fixes
2022-05-20 17:45:04 +02:00
Matthias Mair
a148dbf303
refactor 'all' role
2022-05-20 17:43:51 +02:00
Matthias Mair
c50456297e
fix assertation
2022-05-20 17:27:08 +02:00
Matthias Mair
4868947be0
remove comments from imports
2022-05-20 17:25:50 +02:00
Matthias Mair
e1d22f538d
resort imports
2022-05-20 17:24:51 +02:00
Matthias Mair
ddc4ef3c38
pep fix
2022-05-20 13:37:12 +02:00
Matthias Mair
74726f0fda
fix endline
2022-05-20 13:35:07 +02:00
Matthias Mair
93b6934127
fix trailing
2022-05-20 13:20:55 +02:00
Matthias Mair
9f922f06ff
fix more imports
2022-05-20 12:53:04 +02:00
Matthias Mair
a6f7a29817
fix import path
2022-05-20 12:48:03 +02:00
Matthias Mair
04ce4fa697
readd config
2022-05-20 12:38:15 +02:00
Matthias Mair
e8287f02d4
rename
2022-05-20 12:33:51 +02:00
Matthias Mair
42d325e7ca
fix spelling
2022-05-20 12:33:28 +02:00
Matthias Mair
3a1996dd48
PEP fix
2022-05-20 12:32:25 +02:00
Matthias Mair
023ff3c85a
Merge branch 'master' of https://github.com/inventree/InvenTree into test-simplify
2022-05-20 12:13:31 +02:00
Matthias Mair
0d5dea3e6d
refactor test setup
2022-05-20 12:12:32 +02:00
Matthias Mair and GitHub
63c64f9dff
Update apps.py
2022-05-20 08:31:21 +02:00
Matthias Mair and GitHub
c98cae8c1f
switch print with assert
2022-05-20 08:19:14 +02:00
Matthias Mair and GitHub
e1abdddc4a
Merge branch 'inventree:master' into not-working-tests
2022-05-20 00:28:35 +02:00
Matthias
b87f44dbfc
skip css if not available
2022-05-20 00:10:41 +02:00
Matthias Mair and GitHub
fe4cbe0ad9
Merge branch 'master' into devOps
2022-05-19 18:28:15 +02:00
Matthias Mair and GitHub
eac6456949
Update tasks.py
2022-05-19 08:04:20 +02:00
Matthias Mair and GitHub
dfaf7bcad8
Add static into apps
2022-05-19 07:57:45 +02:00
Matthias Mair and GitHub
b55c76d8ef
test everything
2022-05-19 06:54:24 +02:00
Matthias
113a10eb8a
disable static test for now
2022-05-19 01:48:58 +02:00
Matthias
b2f5c60877
update pip before running - reduce warnings
2022-05-19 01:46:04 +02:00
Matthias
890a5cd1e6
rollback testing dsaveguards and add docs
2022-05-19 01:43:28 +02:00
Matthias Mair and GitHub
f98ec6cf35
Add pre-commit comment
2022-05-19 01:34:39 +02:00
Matthias
38f8e9c9ab
remove duplicate install
2022-05-19 01:13:47 +02:00
Matthias
c97a2531a0
update check
2022-05-19 01:06:14 +02:00
Matthias
4d4a164923
do full update
2022-05-19 01:02:24 +02:00
Matthias
e348d05181
update installed apps
2022-05-19 01:02:07 +02:00
Matthias
295c849447
and print
2022-05-19 00:26:59 +02:00
Matthias
8dedf95a8d
make 'some' request
2022-05-19 00:25:27 +02:00
Matthias
734affb983
PEP fix
2022-05-19 00:22:00 +02:00
Matthias
254c2ccca0
this should already happen in SetUp
2022-05-19 00:21:33 +02:00
Matthias
99f3fc814d
add warning if DB not ready
2022-05-19 00:20:48 +02:00
Matthias
84871fdc79
remove tries - if we are here the AppReg should be ready or fail
2022-05-19 00:19:14 +02:00
Matthias
d2ea76d350
fix setup
2022-05-19 00:16:03 +02:00
Matthias
5ab4fdeb84
skip tests if no themes are present
2022-05-19 00:14:20 +02:00
Matthias
3fd5761089
Merge branch 'master' of https://github.com/inventree/InvenTree into devOps
2022-05-18 23:39:58 +02:00
Matthias
c0ef12f270
only use the user if authenticated
2022-05-18 23:33:04 +02:00
Matthias
51cd038f04
jump over if static dir does not exsist
2022-05-18 23:31:44 +02:00
Matthias
16dad60ea5
collect static right before starting
2022-05-18 23:31:18 +02:00
Matthias
6a8a5c6bc1
Merge branch 'not-working-tests' of https://github.com/matmair/InvenTree into not-working-tests
2022-05-18 23:23:44 +02:00
Matthias
444c8b871e
create labels on startup
2022-05-18 23:23:34 +02:00
Matthias Mair and GitHub
21750c92d3
remove branch from test
2022-05-18 02:33:09 +02:00
Matthias Mair and GitHub
c4208782c5
Update docker_test.yaml
2022-05-18 02:31:04 +02:00
Matthias
9a0189b6bb
fix env name
2022-05-18 02:30:07 +02:00
Matthias
bdf28b72df
fix default
2022-05-18 02:25:44 +02:00
Matthias
4ac7d9626c
add missing test from merge back in
2022-05-18 02:07:28 +02:00
Matthias
9b37760856
fix assertations
2022-05-18 02:06:00 +02:00
Matthias
a570dab5e5
generalise function to make new methods simpler
2022-05-18 02:04:15 +02:00
Matthias
ca7fb691ac
make change patch simpler
2022-05-18 02:02:14 +02:00
Matthias
9f0b00cc0e
replace old function
2022-05-18 02:01:52 +02:00
Matthias
6e19187929
add missing import
2022-05-18 02:01:25 +02:00
Matthias
dc4affb3c5
Merge branch 'webp-support' of https://github.com/matmair/InvenTree into webp-support
2022-05-18 01:58:44 +02:00
Matthias
278c9dbf05
Merge branch 'master' of https://github.com/inventree/InvenTree into webp-support
2022-05-18 01:55:41 +02:00
Matthias Mair and GitHub
67733fa37b
Merge branch 'inventree:master' into not-working-tests
2022-05-18 01:54:00 +02:00
Matthias Mair and GitHub
a40f189c7a
Use unierest mock for env setting
2022-05-17 19:23:50 +02:00
Matthias
fb55f5d2a2
convert remaining function
2022-05-17 01:32:08 +02:00
Matthias
041128ff9c
pep fix
2022-05-17 01:07:36 +02:00
Matthias
7a2b17e939
do not try to access anon users settings
2022-05-17 01:03:04 +02:00
Matthias
94a19727da
fix assertation
2022-05-17 01:02:29 +02:00
Matthias
728cccc469
fix assertation
2022-05-17 00:53:51 +02:00
Matthias
09af7d964d
raise a warning for assertations
2022-05-17 00:24:02 +02:00
Matthias
b3e42f5fb0
Add tests for offloading
2022-05-17 00:13:39 +02:00
Matthias
3e859f7abb
fix assertation
2022-05-16 23:51:17 +02:00
Matthias
9f3fdcb590
make test simpler
2022-05-16 23:43:07 +02:00
Matthias
09bda7e516
add checks for old_error_log
2022-05-16 23:42:09 +02:00
Matthias
f3c4720f5b
extend update check
2022-05-16 23:41:33 +02:00
Matthias Mair
2ec59a6ad2
extend tests for task_delete_succ
2022-05-16 19:45:00 +02:00
Matthias Mair
eb24bf78b8
external api failures are not covered
2022-05-16 19:39:43 +02:00
Matthias Mair
65d0d7906c
add gettext
2022-05-16 19:10:48 +02:00
Matthias Mair
8340daf77b
Merge branch 'master' of https://github.com/inventree/InvenTree into not-working-tests
2022-05-16 19:01:40 +02:00
Matthias Mair
fc8a63325e
that was a stupid misstake
2022-05-16 18:57:27 +02:00
Matthias Mair
5f2c21aa62
run full install
2022-05-16 18:50:16 +02:00
Matthias Mair
07711b8e74
fix check
2022-05-16 18:34:02 +02:00
Matthias Mair
79b4b23a07
pep fix
2022-05-16 18:33:49 +02:00
Matthias Mair
763cd13b7c
use a function if it was passed
2022-05-16 18:30:37 +02:00
Matthias Mair
7fc408cf60
move exceptions up
2022-05-16 18:29:41 +02:00
Matthias Mair
30dbfa9a4f
add tests for InvenTree.tasks
2022-05-16 18:21:58 +02:00
Matthias Mair
cce3d3a35d
make imports on function level
2022-05-16 18:01:16 +02:00
Matthias Mair
18a263ff75
do a local import
2022-05-16 17:55:45 +02:00
Matthias Mair
a9cfdf8fdb
fix import
2022-05-16 17:52:36 +02:00