5ba3581c4ff4584d56ef45ffbd9b94560d23b658,tests/test_core.py,,test_hackmetamodel,#,87

Before Change


    with pytest.raises(AssertionError):
        bayeslite.bayesdb_import_sqlite_table(bdb, "u", metamodel="crosscat")
    bayeslite.bayesdb_set_default_metamodel(bdb, None)
    with pytest.raises(sqlite3.IntegrityError):
        bayeslite.bayesdb_import_sqlite_table(bdb, "t", metamodel="dotdog")
    bayeslite.bayesdb_set_default_metamodel(bdb, "dotdog")
    bayeslite.bayesdb_import_sqlite_table(bdb, "u")
    with pytest.raises(sqlite3.IntegrityError):
        bayeslite.bayesdb_import_sqlite_table(bdb, "u")

After Change


        bdb.execute("CREATE GENERATOR t_cc FOR t USING crosscat(a NUMERICAL)")
    bayeslite.bayesdb_set_default_metamodel(bdb, None)
    with pytest.raises(sqlite3.IntegrityError):
        bdb.execute("CREATE GENERATOR t_dd FOR t USING dotdog(a NUMERICAL)")
    // XXX Rest of test originally exercised default metamodel, but
    // syntax doesn"t support that now.  Not clear that"s wrong either.
    bayeslite.bayesdb_set_default_metamodel(bdb, dotdog_metamodel)
    bdb.execute("CREATE GENERATOR u_dd FOR u USING dotdog(a NUMERICAL)")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: probcomp/bayeslite
Commit Name: 5ba3581c4ff4584d56ef45ffbd9b94560d23b658
Time: 2015-03-18
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_hackmetamodel


Project Name: probcomp/bayeslite
Commit Name: 6ca0021fa40de3f9b7f16e411ec165a6abb2eb1c
Time: 2015-09-17
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_bql.py
Class Name:
Method Name: test_empty_cursor


Project Name: probcomp/bayeslite
Commit Name: 5a52826921f3c47dcfa7bbc8349f6217aa71775d
Time: 2017-11-21
Author: fsaad@mit.edu
File Name: tests/test_codebook.py
Class Name:
Method Name: test_codebook_value_map