From 1bef55ec44d12ed8f39a07ee1c7edad16728fca7 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Sun, 24 Oct 2021 18:18:18 +0200 Subject: [PATCH] Add qty test file --- tests/bomqty.yml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 tests/bomqty.yml diff --git a/tests/bomqty.yml b/tests/bomqty.yml new file mode 100644 index 0000000..9302139 --- /dev/null +++ b/tests/bomqty.yml @@ -0,0 +1,65 @@ +connectors: + X1: + type: No additional components + pincount: 6 + + X2: + type: Contains additional components + pincount: 6 + additional_components: + - + type: One, no unit + - + type: Two kilometers + qty: 2 km + - + type: Takes pincount times seven + qty: 7 + qty_multiplier: pincount + - + type: Takes 10 mm per populated pin + qty: 10 mm + qty_multiplier: populated + - + type: Takes number of connections + qty_multiplier: connections + +cables: + C1: + type: Containts additional components + wirecount: 4 + length: 1.5 + color_code: DIN + additional_components: + - + type: One + - + type: Three centimeters + qty: 3 cm + - + type: Takes wirecount times two + qty: 2 + qty_multiplier: wirecount + - + type: Takes length times three + qty: 3 # adding unit here should cause error because the length already has a unit + qty_multiplier: length + - + type: Takes total length times three + qty: 2 # adding unit here should cause error because the length already has a unit + qty_multiplier: total_length + + W2: + category: bundle + wirecount: 2 + colors: [tomato, skyblue] + +connections: + - + - X1: [1-3] + - C1: [1-3] + - X2: [1-3] + - + - X1: [3,4] + - W2: [1,2] + - X2: [3,4]