we do a little exporting
This commit is contained in:
@@ -97,7 +97,7 @@ def test_energy_density_deficit_blocks():
|
||||
combo = Combination(entities=[platform, storage])
|
||||
result = resolver.resolve(combo)
|
||||
assert result.status == "p1_fail"
|
||||
assert any("energy density deficit" in v for v in result.violations)
|
||||
assert any("deficit" in v for v in result.violations)
|
||||
|
||||
|
||||
def test_energy_density_under_density_warning():
|
||||
@@ -118,7 +118,7 @@ def test_energy_density_under_density_warning():
|
||||
combo = Combination(entities=[platform, storage])
|
||||
result = resolver.resolve(combo)
|
||||
assert result.status != "p1_fail"
|
||||
assert any("under-density" in w for w in result.warnings)
|
||||
assert any("under-provision" in w for w in result.warnings)
|
||||
|
||||
|
||||
def test_energy_density_no_constraint_if_no_provider():
|
||||
@@ -139,7 +139,7 @@ def test_energy_density_no_constraint_if_no_provider():
|
||||
resolver = ConstraintResolver()
|
||||
combo = Combination(entities=[platform, actuator])
|
||||
result = resolver.resolve(combo)
|
||||
density_violations = [v for v in result.violations if "energy density" in v]
|
||||
density_violations = [v for v in result.violations if "energy_density" in v]
|
||||
assert len(density_violations) == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user