File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test_pownet/test_builder Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments