Skip to content

Commit 7d1eac1

Browse files
committed
Update test_basebuilder.py
1 parent b327ba6 commit 7d1eac1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test_pownet/test_builder/test_basebuilder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def test_component_builder_is_abc_and_cannot_be_instantiated(
112112

113113
with self.assertRaisesRegex(
114114
TypeError,
115-
# Updated regex to match the beginning of the actual error message
116-
r"Can't instantiate abstract class ComponentBuilder without an implementation for abstract method",
115+
# Simplified regex to match the beginning of the actual error message
116+
r"Can't instantiate abstract class ComponentBuilder",
117117
):
118118
ComponentBuilder(mock_model_instance, mock_inputs_instance)
119119

@@ -161,8 +161,8 @@ def test_incomplete_subclass_cannot_be_instantiated(
161161

162162
with self.assertRaisesRegex(
163163
TypeError,
164-
# Updated regex to match the beginning of the actual error message
165-
r"Can't instantiate abstract class IncompleteBuilder without an implementation for abstract method",
164+
# Simplified regex to match the beginning of the actual error message
165+
r"Can't instantiate abstract class IncompleteBuilder",
166166
):
167167
IncompleteBuilder(mock_model_instance, mock_inputs_instance)
168168

0 commit comments

Comments
 (0)