05339b85d8bda6c047cc7e6abc04b94e2cfecb84,tests/test_smoke.py,,test_csv_import_nocols,#,370

Before Change


                bayeslite.bayesdb_import_csv_file(bdb, "nocols", f.name)

def test_csv_import_nocols():
    with bayesdb() as bdb:
        with tempfile.NamedTemporaryFile(prefix="bayeslite") as f:
            with open(f.name, "w") as out:
                out.write("\n")
            with pytest.raises(IOError):
                bayeslite.bayesdb_import_csv_file(bdb, "nocols", f.name)

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

After Change


            bayeslite.bayesdb_import_csv_file(bdb, "nocols", fname)

def test_csv_import_nocols():
    with bayesdb_csv("\n") as (bdb, fname):
        with pytest.raises(IOError):
            bayeslite.bayesdb_import_csv_file(bdb, "nocols", fname)

def test_csv_import_onecol():
    with bayesdb_csv("foo\n0\none\n2\n") as (bdb, fname):
        bayeslite.bayesdb_import_csv_file(bdb, "onecol", fname)
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_nocols


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_toofewcols


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_nocols


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_toomanycols