Commit graph

13 commits

Author SHA1 Message Date
Erik Hohlfeld 5aefd4e05f Filter and distinguish products in orderCatalog 2024-01-19 19:00:51 +01:00
Simon Bruder d75234d172
Expand InventoryControllerIntegrationTests
They now should cover almost all cases. I did not add all editing tests
as the implementation is the same as with adding, and it would just add
bloat.
2024-01-14 17:06:16 +01:00
Simon Bruder 8b2fe0cb40
Extract item counting in InventoryControllerIntegrationTests 2024-01-14 17:06:16 +01:00
Simon Bruder 9ec41df27f
Add integration test for InventoryInitializer 2024-01-14 17:06:16 +01:00
Simon Bruder 0c5e3f4e5c
Add unit tests for InventoryMutateForm using jqwik
This adds the jqwik dependency for property based testing, like
Haskell’s QuickCheck.
2024-01-14 17:05:58 +01:00
Simon Bruder 7365b384e3
Make metric variable
This was somehow overlooked, but it should work.

This needs to change how the InventoryMutateForm handles quantities, as
the amount has to be split from the metric for addition to work.
2024-01-09 10:53:12 +01:00
Simon Bruder bac025fd0a
Make project REUSE compliant
This finally makes the licensing under AGPL-3.0-or-later explicit after
I got the okay from the kickstart source owners.

This also checks the REUSE compliance in a pre commit hook, and
therefore also in CI.
2023-12-11 17:59:14 +01:00
Simon Bruder 4d89fdc10a
Restrict product types for inventory edit
The error message gets slightly less meaningful, but either are
currently just a mess.
2023-12-09 12:02:38 +01:00
Simon Bruder c5f6b18cd3
Make inventory authorization tests more complete 2023-12-09 12:02:38 +01:00
Simon Bruder 3e2cc3d0b2
Allow specifying order types in inventory
Fixes #95
2023-12-09 12:02:37 +01:00
Simon Bruder 2dff2842fc
Adapt inventory to new catalog interface
This also does a major restructuring of the inventory mutate form.

Some things still are not as they should be, but it mostly works like
before. They can be fixed later.

Co-authored-by: Theo Reichert <theo.reichert@mailbox.tu-dresden.de>
2023-11-29 18:42:37 +01:00
Simon Bruder 4c83c661fe
Test inventory error handling 2023-11-24 17:25:34 +01:00
Simon Bruder f7d859b25d
Add integration tests for inventory controller 2023-11-24 17:25:32 +01:00