Skip to content

Commit 95558a9

Browse files
authored
Fix imports in tests [skip ci] (#190)
Signed-off-by: Max Chesterfield <max.chesterfield@zepben.com>
1 parent b136555 commit 95558a9

8 files changed

Lines changed: 8 additions & 9 deletions

File tree

test/cim/iec61968/infiec61968/infcommon/test_ratio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
55

6-
from _pytest.python_api import raises
6+
from pytest import raises
77
from hypothesis import given
88
from hypothesis.strategies import floats
99

test/cim/iec61970/base/core/test_site.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
import pytest
66
from hypothesis import given
77

8-
from zepben.ewb.services.network.tracing.networktrace.operators.network_state_operators import NetworkStateOperators
98
from cim.iec61970.base.core.test_equipment_container import equipment_container_kwargs, verify_equipment_container_constructor_default, \
109
verify_equipment_container_constructor_kwargs, verify_equipment_container_constructor_args, equipment_container_args
11-
from zepben.ewb import Site, TestNetworkBuilder, Equipment, AssignToLvFeeders, LvFeeder
10+
from zepben.ewb import Site, TestNetworkBuilder, Equipment, AssignToLvFeeders, LvFeeder, NetworkStateOperators
1211

1312
site_kwargs = equipment_container_kwargs
1413
site_args = equipment_container_args

test/cim/iec61970/base/protection/test_relay_setting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This Source Code Form is subject to the terms of the Mozilla Public
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
from _pytest.python_api import raises
5+
from pytest import raises
66

77
from zepben.ewb import RelaySetting, UnitSymbol
88

test/cim/iec61970/base/wires/test_power_electronics_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
55
import re
66

7-
from _pytest.python_api import raises
7+
from pytest import raises
88
from hypothesis import given
99
from hypothesis.strategies import integers, builds, lists, floats, text, booleans
1010
from zepben.ewb import PowerElectronicsUnit, BatteryUnit, PowerElectronicsConnection

test/cim/iec61970/base/wires/test_power_transformer_end.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
import pytest
8-
from _pytest.python_api import raises
8+
from pytest import raises
99
from hypothesis import given
1010
from hypothesis.strategies import builds, integers, floats, sampled_from
1111
from zepben.ewb import PowerTransformerEnd, PowerTransformer, WindingConnection, TransformerCoolingType

test/cim/iec61970/base/wires/test_transformer_end.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This Source Code Form is subject to the terms of the Mozilla Public
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
from _pytest.python_api import raises
5+
from pytest import raises
66
from hypothesis.strategies import floats, booleans, builds, integers
77
from zepben.ewb import Terminal, BaseVoltage, TransformerStarImpedance, PowerTransformer, Fuse
88
from zepben.ewb.model.cim.iec61970.base.wires.transformer_end import TransformerEnd

test/database/paths/test_ewb_data_file_paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from typing import Iterator
88
from unittest.mock import Mock
99

10-
from _pytest.python_api import raises
10+
from pytest import raises
1111

1212
from zepben.ewb import EwbDataFilePaths, DatabaseType
1313

test/services/network/tracing/traversal/test_step_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This Source Code Form is subject to the terms of the Mozilla Public
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
5-
from _pytest.python_api import raises
5+
from pytest import raises
66

77
from zepben.ewb import StepAction, StepContext
88
from zepben.ewb.services.network.tracing.traversal.step_action import T

0 commit comments

Comments
 (0)