def test_compile_model_data_with_added_params(self): """Tests that additional params can be set in compile_model_data""" model_data = compile_model_data(User, {'email': '*****@*****.**'}, username='******') assert model_data['username'] == 'username1'
def test_compile_model_data(self): """Tests that compile_model_data creates a dict of model data""" model_data = compile_model_data(User, {'email': '*****@*****.**'}) assert model_data['email'] == '*****@*****.**' for k, v in MODEL_DEFAULTS[User].items(): assert model_data[k] == v