def test_post_depot_param_none(): """Test post_depot when data_dict is none.""" api = PyDelivengo(api_authorization='Loremipsumdolorsitametconsectetu') with pytest.raises(PyDelivengoTypeError): # noinspection PyTypeChecker api.post_depot(data_dict=None)
def test_post_depot_type_error(): """Test post_depot when data_dict is not a dictionary.""" api = PyDelivengo(api_authorization='Loremipsumdolorsitametconsectetu') with pytest.raises(PyDelivengoTypeError): # noinspection PyTypeChecker api.post_depot(data_dict='lolcatz')