Skip to content

Commit

Permalink
Update charging-settings.multi.json and adjust tests accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Jan 25, 2021
1 parent 395e546 commit 9edd6b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/kamereon/test_kamereon_charge_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,3 @@ def test_validation_overlap(
with pytest.raises(ModelValidationException) as excinfo:
helpers.validate_charge_schedules(charge_settings.schedules)
assert "overlaps with next day schedule" in str(excinfo.value)


def test_validation_multiple_active(
charge_settings: models.KamereonVehicleChargingSettingsData,
) -> None:
"""Test validation of an overlap with the next day."""
charge_settings.schedules[1].activated = True
with pytest.raises(ModelValidationException) as excinfo:
helpers.validate_charge_schedules(charge_settings.schedules)
assert "multiple activated schedules" in str(excinfo.value)

0 comments on commit 9edd6b7

Please sign in to comment.