Commit Graph

32 Commits

Author SHA1 Message Date
Oliver 92aa7adfec
Adds callback for creation of an error log (#3136)
* Adds callback for creation of an error log

* Fix unit tests
2022-06-06 15:21:31 +10:00
Matthias Mair 0c97a50e47
Docstring checks in QC checks (#3089)
* Add pre-commit to the stack

* exclude static

* Add locales to excludes

* fix style errors

* rename pipeline steps

* also wait on precommit

* make template matching simpler

* Use the same code for python setup everywhere

* use step and cache for python setup

* move regular settings up into general envs

* just use full update

* Use invoke instead of static references

* make setup actions more similar

* use python3

* refactor names to be similar

* fix runner version

* fix references

* remove incidential change

* use matrix for os

* Github can't do this right now

* ignore docstyle errors

* Add seperate docstring test

* update flake call

* do not fail on docstring

* refactor setup into workflow

* update reference

* switch to action

* resturcture

* add bash statements

* remove os from cache

* update input checks

* make code cleaner

* fix boolean

* no relative paths

* install wheel by python

* switch to install

* revert back to simple wheel

* refactor import export tests

* move setup keys back to not disturbe tests

* remove docstyle till that is fixed

* update references

* continue on error

* add docstring test

* use relativ action references

* Change step / job docstrings

* update to merge

* reformat comments 1

* fix docstrings 2

* fix docstrings 3

* fix docstrings 4

* fix docstrings 5

* fix docstrings 6

* fix docstrings 7

* fix docstrings 8

* fix docstirns 9

* fix docstrings 10

* docstring adjustments

* update the remaining docstrings

* small docstring changes

* fix function name

* update support files for docstrings

* Add missing args to docstrings

* Remove outdated function

* Add docstrings for the 'build' app

* Make API code cleaner

* add more docstrings for plugin app

* Remove dead code for plugin settings
No idea what that was even intended for

* ignore __init__ files for docstrings

* More docstrings

* Update docstrings for the 'part' directory

* Fixes for related_part functionality

* Fix removed stuff from merge 99676ee

* make more consistent

* Show statistics for docstrings

* add more docstrings

* move specific register statements to make them clearer to understant

* More docstrings for common

* and more docstrings

* and more

* simpler call

* docstrings for notifications

* docstrings for common/tests

* Add docs for common/models

* Revert "move specific register statements to make them clearer to understant"

This reverts commit ca96654622.

* use typing here

* Revert "Make API code cleaner"

This reverts commit 24fb68bd3e.

* docstring updates for the 'users' app

* Add generic Meta info to simple Meta classes

* remove unneeded unique_together statements

* More simple metas

* Remove unnecessary format specifier

* Remove extra json format specifiers

* Add docstrings for the 'plugin' app

* Docstrings for the 'label' app

* Add missing docstrings for the 'report' app

* Fix build test regression

* Fix top-level files

* docstrings for InvenTree/InvenTree

* reduce unneeded code

* add docstrings

* and more docstrings

* more docstrings

* more docstrings for stock

* more docstrings

* docstrings for order/views

* Docstrings for various files in the 'order' app

* Docstrings for order/test_api.py

* Docstrings for order/serializers.py

* Docstrings for order/admin.py

* More docstrings for the order app

* Add docstrings for the 'company' app

* Add unit tests for rebuilding the reference fields

* Prune out some more dead code

* remove more dead code

Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2022-06-02 01:37:39 +10:00
Matthias Mair 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 e1d22f538d resort imports 2022-05-20 17:24:51 +02:00
Oliver 9bcbaaa5f5 Remove more python2 stuff 2022-05-17 16:57:31 +10:00
Matthias e1d261f989
pep fix 2022-04-05 23:47:26 +02:00
Matthias 77f5fa9360
pep fix 2022-04-05 23:45:35 +02:00
Matthias f3aab952de
remove empty class 2022-04-05 23:43:50 +02:00
Matthias 47f9bd911a
add tests for notifications 2022-04-05 23:41:37 +02:00
Matthias 5b9f84a90f
fix test 2022-04-05 01:30:12 +02:00
Matthias 785cdc5267
patch loading methods for selective loading 2022-04-05 01:29:19 +02:00
Matthias 32918348b9
fix docstrings 2022-04-05 00:55:53 +02:00
Matthias 023cd53b1a
fix test that failing deliveries do not block 2021-12-10 00:22:25 +01:00
Matthias 5567ee432a
more coverage 2021-12-04 18:50:49 +01:00
Matthias 2413119cc1
seperate wrong implementations into own cases 2021-12-04 18:42:08 +01:00
Matthias 2ef8c25c05
directer import 2021-12-04 17:46:04 +01:00
Matthias 8724471fc0
rename 2021-12-04 17:45:52 +01:00
Matthias ce726f89a1
refactor wrong implementations into own testcase 2021-12-04 17:45:40 +01:00
Matthias 13b390d69b
test that single errors do not kill the whole 2021-12-04 17:44:10 +01:00
Matthias cfd509adb4
PEP fix 2021-12-04 17:43:11 +01:00
Matthias 58f0838d3d
improve coverage 2021-12-04 17:24:41 +01:00
Matthias 7016c253a8
fix test to trigger 2021-12-04 04:38:45 +01:00
Matthias 75c7722612
PEP fixes 2021-12-04 03:57:45 +01:00
Matthias f88882da8e
without targets it wont work 2021-12-04 03:56:16 +01:00
Matthias 057c880377
fix test calls 2021-12-04 03:41:05 +01:00
Matthias 1ef7163b94
remove one uncovered line :-) 2021-12-04 02:39:41 +01:00
Matthias c803fdaab1
PEP fix 2021-12-04 01:39:58 +01:00
Matthias 1f7a75ca92
docs are never bad 2021-12-04 01:10:56 +01:00
Matthias 4e07b4bf72
fix tests + method name test 2021-12-04 01:10:46 +01:00
Matthias 33b7d9b845
more debug prints 2021-12-04 00:43:46 +01:00
Matthias 2917af9715
add marker statment to wrong implementations 2021-12-03 02:02:51 +01:00
Matthias 79bab93afc
refactor into new test file 2021-12-03 02:01:17 +01:00