3e5e9bbbb73ff219404e379fa292c010ebb7e5f2,tests/test_csv.py,,test_csv_import_schema_case,#,120
Before Change
def test_csv_import_schema_case():
with bayesdb_csv_stream(csv_data) as (bdb, f):
bayeslite.bayesdb_import_csv(bdb, "employees", f,
column_types={
"age": "numerical",
"GENDER": "categorical",
"salary": "cyclic",
"HEIght": "ignore",
"division": "categorical",
"RANK": "categorical",
})
def test_csv_import_badschema0():
with bayesdb_csv_stream(csv_data) as (bdb, f):
with pytest.raises(IOError):
After Change
def test_csv_import_schema_case():
with bayesdb_csv_stream(csv_data) as (bdb, f):
bdb.sql_execute("""
CREATE TABLE emPloyEES(
AGE INTeger,
geNder Text,
saLAry REal,
heighT inteGER,
DIVision TEXt,
rank INTEGER
)
""")
bayeslite.bayesdb_read_csv(bdb, "employees", f, header=True,
create=False)
bayeslite.guess.bayesdb_guess_generator(bdb, "employees_cc",
"employees", "crosscat")
def test_csv_import_badschema0():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: probcomp/bayeslite
Commit Name: 3e5e9bbbb73ff219404e379fa292c010ebb7e5f2
Time: 2015-03-23
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_csv.py
Class Name:
Method Name: test_csv_import_schema_case
Project Name: probcomp/bayeslite
Commit Name: 3e5e9bbbb73ff219404e379fa292c010ebb7e5f2
Time: 2015-03-23
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_csv.py
Class Name:
Method Name: test_csv_import_badschema1
Project Name: probcomp/bayeslite
Commit Name: 3e5e9bbbb73ff219404e379fa292c010ebb7e5f2
Time: 2015-03-23
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_csv.py
Class Name:
Method Name: test_csv_import_badschema0
Project Name: probcomp/bayeslite
Commit Name: 3e5e9bbbb73ff219404e379fa292c010ebb7e5f2
Time: 2015-03-23
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_csv.py
Class Name:
Method Name: test_csv_import_schema_case