

@xfail
def test_traverse(db_conn, units_table, users_table, responses_table, sets_table):
    '\n    Expect to take a list of units and traverse them correctly.\n    Basic test.\n    '
    add_test_set(db_conn, users_table, units_table, responses_table, sets_table)
    set_ = Set.get(db_conn, entity_id='set')
    user = User.get(sets_table, id='user')
    buckets = traverse(db_conn, user, set_)
    assert (buckets['diagnose'][0]['entity_id'] == 'divide')
    assert (buckets['learn'][0]['entity_id'] == 'multiply')
    assert (buckets['review'][0]['entity_id'] == 'subtract')

dataset/ETHPy150Open heiskr/sagefy/server/test/test_modules_sequencer_traversal.py test_traverse/VarMisuse@55/125 `db_conn`->`sets_table`