def test_delete_envois_type_error(): """Test delete_envois when there is a type error on envoi_id.""" api = PyDelivengo(api_authorization='Loremipsumdolorsitametconsectetu') with pytest.raises(PyDelivengoTypeError): # noinspection PyTypeChecker api.delete_envois(envoi_id='lolcatz')
def test_delete_envois_param_none(): """Test delete_envois when envoi_id is none.""" api = PyDelivengo(api_authorization='Loremipsumdolorsitametconsectetu') with pytest.raises(PyDelivengoTypeError): # noinspection PyTypeChecker api.delete_envois(envoi_id=None)