8d16197f88d01ab8521c872e0be7b902d8ce545d,tests/test_observers/test_sql_observer.py,,test_sql_observer_heartbeat_event_updates_run,#Any#Any#Any#,146
Before Change
info = {"my_info": [1, 2, 3], "nr": 7}
outp = "some output"
with tempfile.NamedTemporaryFile() as f:
f.write(outp.encode())
f.flush()
sql_obs.heartbeat_event(info=info, cout_filename=f.name,
beat_time=T2)
assert session.query(Run).count() == 1
db_run = session.query(Run).first()
assert db_run.heartbeat == T2
assert json.decode(db_run.info) == info
After Change
info = {"my_info": [1, 2, 3], "nr": 7}
outp = "some output"
sql_obs.heartbeat_event(info=info, captured_out=outp, beat_time=T2)
assert session.query(Run).count() == 1
db_run = session.query(Run).first()
assert db_run.heartbeat == T2
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: IDSIA/sacred
Commit Name: 8d16197f88d01ab8521c872e0be7b902d8ce545d
Time: 2016-12-02
Author: qwlouse@gmail.com
File Name: tests/test_observers/test_sql_observer.py
Class Name:
Method Name: test_sql_observer_heartbeat_event_updates_run
Project Name: IDSIA/sacred
Commit Name: 8d16197f88d01ab8521c872e0be7b902d8ce545d
Time: 2016-12-02
Author: qwlouse@gmail.com
File Name: tests/test_observers/test_mongo_observer.py
Class Name:
Method Name: test_mongo_observer_heartbeat_event_updates_run
Project Name: IDSIA/sacred
Commit Name: 8f4e540ad90e2722fb000d7934339f3e68df7f44
Time: 2016-07-06
Author: qwlouse@gmail.com
File Name: tests/test_observers/test_mongo_observer.py
Class Name:
Method Name: test_mongo_observer_heartbeat_event_updates_run
Project Name: IDSIA/sacred
Commit Name: 8d16197f88d01ab8521c872e0be7b902d8ce545d
Time: 2016-12-02
Author: qwlouse@gmail.com
File Name: tests/test_observers/test_tinydb_reader.py
Class Name:
Method Name: run_test_experiment