Commit Graph

26 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
e1d22f538d resort imports 2022-05-20 17:24:51 +02:00
63c64f9dff Update apps.py 2022-05-20 08:31:21 +02:00
c98cae8c1f switch print with assert 2022-05-20 08:19:14 +02:00
295c849447 and print 2022-05-19 00:26:59 +02:00
8dedf95a8d make 'some' request 2022-05-19 00:25:27 +02:00
99f3fc814d add warning if DB not ready 2022-05-19 00:20:48 +02:00
84871fdc79 remove tries - if we are here the AppReg should be ready or fail 2022-05-19 00:19:14 +02:00
77aeecf23a make operators simpler 2022-05-15 17:52:23 +02:00
a65d747501 add additional template 2022-05-11 03:05:40 +02:00
f88d39db66 fix coverage 2022-02-13 22:07:30 +01:00
40ea93e00a catch more explicit 2022-02-13 22:06:53 +01:00
a6621a5327 fix label tests 2022-02-13 21:15:40 +01:00
15cb1e0005 Print part labels 2021-07-08 22:54:41 +10:00
c39f705ef7 Copy default part label templates 2021-07-08 22:42:31 +10:00
f2b0717d10 removes all lines consisting only of spaces
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
06afd4d726 Refactor "ready" state into a function 2021-04-25 10:52:31 +10:00
6e5fc43105 Prevent copying of labels and templates during data import phase 2021-04-25 10:33:11 +10:00
e787c853e5 Update logger context 2021-04-10 20:08:13 +10:00
7d54997cb8 Tweaks 2021-02-22 16:48:00 +11:00
bf51e1bfb1 Update label templates
- New ones are automatically copied across now
2021-02-22 16:39:38 +11:00
88a7b3251d Remove unused import 2021-01-14 08:14:32 +11:00
6e4cf7c092 Catch db integrity errors 2021-01-13 22:07:30 +11:00
e561b3a4fc Add StockItemLabel templates 2021-01-13 21:51:55 +11:00
663a0a6165 Create simple label templates for stocklocation labels 2021-01-11 23:45:25 +11:00
a45902bd4f Add "label" app 2020-08-16 09:28:12 +10:00