

def test_bayesdb_generator_fresh_row_id():
    with bayesdb_generator(bayesdb(), 't1', 't1_cc', t1_schema, (lambda x: 0), columns=['label CATEGORICAL', 'age NUMERICAL', 'weight NUMERICAL']) as (bdb, generator_id):
        assert (core.bayesdb_generator_fresh_row_id(x, generator_id) == 1)
        t1_data(bdb)
        assert (core.bayesdb_generator_fresh_row_id(bdb, generator_id) == (len(t1_rows) + 1))

dataset/ETHPy150Open probcomp/bayeslite/tests/test_core.py test_bayesdb_generator_fresh_row_id/VarMisuse@54/103 `bdb`->`x`