Skip to content

Commit 129c5de

Browse files
committed
Address testing feedback on remaining patterns see HEA-815
1 parent 039965e commit 129c5de

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

pipelines/assets/livelihood_activity_regexes.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,18 @@
331331
false,
332332
"milking_animals"
333333
],
334+
[
335+
"(?P<season>season 1): (?:no\\.|no|number) milking animals",
336+
"MilkProduction",
337+
false,
338+
"milking_animals"
339+
],
340+
[
341+
"(?P<season>season 2): (?:no\\.|no|number) milking animals",
342+
"MilkProduction",
343+
true,
344+
"milking_animals"
345+
],
334346
[
335347
"daily milk production per animal \\({unit_of_measure_pattern}\\)",
336348
null,

pipelines_tests/test_assets/test_livelihood_activity_regexes.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
"number milking animals": {
2525
"attribute": "milking_animals"
2626
},
27+
"season 1: no. milking animals": {
28+
"strategy_type": "MilkProduction",
29+
"season": "season 1",
30+
"attribute": "milking_animals"
31+
},
32+
"season 2: no. milking animals": {
33+
"strategy_type": "MilkProduction",
34+
"is_start": true,
35+
"season": "season 2",
36+
"attribute": "milking_animals"
37+
},
2738
"season 1: lactation period (days)": {
2839
"strategy_type": "MilkProduction",
2940
"season": "season 1",

0 commit comments

Comments
 (0)