示例#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):
         QpointPhononModes(*faulty_args, **faulty_kwargs)
示例#2
0
 def create_from_constructor_without_weights(self, request):
     expected_qpt_ph_modes = request.param
     args, kwargs = expected_qpt_ph_modes.to_constructor_args(weights=False)
     qpt_ph_modes = QpointPhononModes(*args, **kwargs)
     return qpt_ph_modes, expected_qpt_ph_modes