05339b85d8bda6c047cc7e6abc04b94e2cfecb84,tests/test_smoke.py,,test_csv_import,#,410

Before Change


"""

def test_csv_import():
    with bayesdb() as bdb:
        with tempfile.NamedTemporaryFile(prefix="bayeslite") as f:
            with open(f.name, "w") as out:
                out.write(csv_data)
            bayeslite.bayesdb_import_csv_file(bdb, "employees", f.name)

def test_csv_import_schema():
    with bayesdb() as bdb:
        with tempfile.NamedTemporaryFile(prefix="bayeslite") as f:
            with open(f.name, "w") as out:

After Change


"""

def test_csv_import():
    with bayesdb_csv(csv_data) as (bdb, fname):
        bayeslite.bayesdb_import_csv_file(bdb, "employees", fname)

def test_csv_import_schema():
    with bayesdb_csv(csv_data) as (bdb, fname):
        bayeslite.bayesdb_import_csv_file(bdb, "employees", fname,
            column_types={
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 17

Instances


Project Name: probcomp/bayeslite
Commit Name: 05339b85d8bda6c047cc7e6abc04b94e2cfecb84
Time: 2014-12-26
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_smoke.py
Class Name:
Method Name: test_csv_import


Project Name: probcomp/bayeslite
Commit Name: 05339b85d8bda6c047cc7e6abc04b94e2cfecb84
Time: 2014-12-26
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_smoke.py
Class Name:
Method Name: test_csv_import_schema


Project Name: probcomp/bayeslite
Commit Name: 05339b85d8bda6c047cc7e6abc04b94e2cfecb84
Time: 2014-12-26
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_smoke.py
Class Name:
Method Name: test_csv_import


Project Name: probcomp/bayeslite
Commit Name: 05339b85d8bda6c047cc7e6abc04b94e2cfecb84
Time: 2014-12-26
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_smoke.py
Class Name:
Method Name: test_csv_import_badschema