feat(stove-api): expose estimate and operator controls
This commit is contained in:
@@ -257,3 +257,11 @@ def test_no_bill_is_named_and_bricks_alone_are_materials():
|
||||
assert out["missing_data"] == ["ведомость материалов"]
|
||||
assert out["materials"] == {"min": 4420, "max": 4420, "min_way": 0, "max_way": 0}
|
||||
assert out["total"]["min"] == 4420 + 1106
|
||||
|
||||
|
||||
def test_works_only_are_a_valid_partial_total_when_material_prices_are_missing():
|
||||
out = _checked(_run(lines=[dict(UNMATCHED)], notes=[]))
|
||||
assert out["works"] is not None
|
||||
assert out["materials"] is None
|
||||
assert out["total"] == out["works"]
|
||||
assert out["missing"] == [UNMATCHED["name"]]
|
||||
|
||||
Reference in New Issue
Block a user