Beispiel #1
0
def test_get_user():
    user_name = 'TestUser'
    obj = {
        'email': 'test-email',
        'phone_nr': 'test-phone',
        'location': 'test-location'
    }
    resp_obj, status_code = maria_f.get_user(user_name)
    assert obj == resp_obj
Beispiel #2
0
def show_user(user_name):
    '''Show user by name'''
    obj, status_code = maria_f.get_user(user_name)
    return make_response(jsonify(obj), status_code)