Skip to content

Commit

Permalink
revert run option
Browse files Browse the repository at this point in the history
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
  • Loading branch information
nitbharambe committed May 22, 2024
1 parent 2c2dca8 commit 1779c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/data/power_flow/pgm-automatic-tap/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"experimental_features": "enabled",
"fail": {
"reason": "Experimental feature under development",
"run": false
"raises": "OSError"
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ def add_case(
if "fail" in calculation_method_params:
xfail = calculation_method_params["fail"]
kwargs["marks"] = pytest.mark.xfail(
reason=xfail["reason"],
raises=KNOWN_EXCEPTIONS[xfail.get("raises", "AssertionError")],
run=xfail.get("run", True),
reason=xfail["reason"], raises=KNOWN_EXCEPTIONS[xfail.get("raises", "AssertionError")]
)
yield pytest.param(*pytest_param, **kwargs, id=case_id)

Expand Down

0 comments on commit 1779c46

Please sign in to comment.