Skip to content

Commit

Permalink
fix pytest for genericbranch
Browse files Browse the repository at this point in the history
PPSE/17
  • Loading branch information
sudo-ac committed Sep 20, 2024
1 parent bbcec5e commit 2347eb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions tests/unit/validation/test_input_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ def test_validate_input_data_sym_calculation(input_data):
[
"node",
"line",
"genericbranch",
"transformer",
"three_winding_transformer",
"source",
Expand All @@ -433,7 +434,7 @@ def test_validate_input_data_sym_calculation(input_data):
"sym_power_sensor",
"measured_object",
[7, 10],
["line", "transformer"],
["line", "genericbranch", "transformer"],
{"measured_terminal_type": MeasuredTerminalType.branch_to},
)
in validation_errors
Expand All @@ -450,7 +451,8 @@ def test_validate_input_data_sym_calculation(input_data):
[7, 9, 10],
[
"node",
"line",
"line",
"genericbranch",
"transformer",
"three_winding_transformer",
"source",
Expand All @@ -469,7 +471,7 @@ def test_validate_input_data_sym_calculation(input_data):
"asym_power_sensor",
"measured_object",
[7, 10],
["line", "transformer"],
["line","genericbranch","transformer"],
{"measured_terminal_type": MeasuredTerminalType.branch_to},
)
in validation_errors
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/validation/test_validation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ def test_validate_generic_power_sensor__all_terminal_types(
@pytest.mark.parametrize(
("ref_component", "measured_terminal_type"),
[
(["line", "transformer"], MeasuredTerminalType.branch_from),
(["line", "transformer"], MeasuredTerminalType.branch_to),
(["line","genericbranch", "transformer"], MeasuredTerminalType.branch_from),
(["line", "genericbranch", "transformer"], MeasuredTerminalType.branch_to),
("source", MeasuredTerminalType.source),
("shunt", MeasuredTerminalType.shunt),
(["sym_load", "asym_load"], MeasuredTerminalType.load),
Expand Down

0 comments on commit 2347eb7

Please sign in to comment.