def test_get_current_user(users_table, db_conn):

    create_user_in_db(users_table, db_conn)
    token = log_in()
    user = get_current_user({
        'cookies': {'session_id': token},
        'db_conn': db_conn,
    })
    assert user
    assert user['id'] == 'abcd1234'
Expect to get the current user given session info.
dataset/ETHPy150Open heiskr/sagefy/server/test/test_framework_session.py/test_get_current_user