Skip to content

Commit

Permalink
fix test_load
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianDD committed Jul 4, 2023
1 parent 6c33cac commit 01647cd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 9 deletions.
38 changes: 32 additions & 6 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
linter = ["ruff"]
prototype = ["ipykernel"]
test = ["pytest", "pytest-cov", "pytest-xdist"]
typing = ["mypy @ git+https://github.com/python/mypy.git@master"]
typing = ["mypy"]

[tool.ruff]
extend-exclude = ["tests"]
Expand Down
3 changes: 1 addition & 2 deletions tests/test_topology_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TestRatedPower:
(4, 2, 1, 1, 1, 1, 1, 1, PowerType.AC_APPARENT, False, does_not_raise()),
(2, 2, 1, 1, 1, 1, 2, 1, PowerType.AC_APPARENT, False, pytest.raises(pydantic.ValidationError)),
(2, -2, 1, 1, 1, 1, 1, 1, PowerType.AC_APPARENT, True, pytest.raises(pydantic.ValidationError)),
(0, -2, 1, 1, 1, 1, 1, 1, PowerType.AC_APPARENT, True, pytest.raises(pydantic.ValidationError)),
(0, -2, 1, 1, 1, 1, 1, 1, PowerType.AC_APPARENT, False, pytest.raises(pydantic.ValidationError)),
(4, 2, 1, 1, 1, 1, 2, 1, PowerType.AC_APPARENT, True, pytest.raises(pydantic.ValidationError)),
(0, -2, 1, 1, 1, 1, 1, 1, PowerType.AC_APPARENT, True, pytest.raises(pydantic.ValidationError)),
(3, 1, 1, 1, 1, 1, 1, 1, PowerType.AC_APPARENT, False, pytest.raises(pydantic.ValidationError)),
Expand Down Expand Up @@ -62,7 +62,6 @@ def test_init( # noqa: PLR0913
cosphi_a=cosphi_a,
cosphi_b=cosphi_b,
cosphi_c=cosphi_c,
is_symmetrical=is_symmetrical,
power_type=power_type,
is_symmetrical=is_symmetrical,
)

0 comments on commit 01647cd

Please sign in to comment.