651346e6d36fcd7c3bece2187aea9dfd498136cf,tests/test_cgpm.py,,test_unknown_stattype,#,305
Before Change
]:
for x in xrange(5):
for y in xrange(5):
countries = ["US", "Russia", "China", "Bulgaria"]
country = countries[bdb._np_prng.randint(0, len(countries))]
mass = bdb._np_prng.normal(1000, 50)
bdb.sql_execute("""
INSERT INTO satellites_ucs
(country_of_operator, launch_mass, class_of_orbit,
After Change
with cgpm_dummy_satellites_bdb() as bdb:
// Add a column called relaunches, sum of apogee and perigee.
bdb.sql_execute("ALTER TABLE satellites_ucs ADD COLUMN relaunches")
n_rows = bdb.sql_execute("""
SELECT COUNT(*) FROM satellites_ucs
""").next()[0]
for rowid in xrange(n_rows):
bdb.sql_execute("""
UPDATE satellites_ucs
SET relaunches = (SELECT apogee + perigee)
WHERE _rowid_ = ?
""", (rowid+1,))
// Nobody will ever create a QUAGGA statistical type!
with pytest.raises(BQLError):
// No such statistical type at the moment.
bdb.execute("""
CREATE POPULATION satellites FOR satellites_ucs (
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: probcomp/bayeslite
Commit Name: 651346e6d36fcd7c3bece2187aea9dfd498136cf
Time: 2016-07-21
Author: fsaad@mit.edu
File Name: tests/test_cgpm.py
Class Name:
Method Name: test_unknown_stattype
Project Name: probcomp/bayeslite
Commit Name: c5a636f37759e2a7aced9aabcb97b1d9a806f9e0
Time: 2015-08-26
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_column_dep.py
Class Name:
Method Name: test_impossible_nontransitive_dependency
Project Name: probcomp/bayeslite
Commit Name: c5a636f37759e2a7aced9aabcb97b1d9a806f9e0
Time: 2015-08-26
Author: riastradh+probcomp@csail.mit.edu
File Name: tests/test_column_dep.py
Class Name:
Method Name: test_impossible_duplicate_dependency