Example #1
0
 def test_faulty_object_creation(self, inject_faulty_elements):
     faulty_args, faulty_kwargs, expected_exception = inject_faulty_elements
     with pytest.raises(expected_exception):
         ForceConstants(*faulty_args, **faulty_kwargs)
Example #2
0
 def create_from_constructor(self, request):
     expected_fc = request.param
     args, kwargs = expected_fc.to_constructor_args()
     fc = ForceConstants(*args, **kwargs)
     return fc, expected_fc