Exemplo n.º 1
0
def test_get_last_run(dataset):
    assert dataset.run_id \
        == mut_queries.get_last_run(dataset.conn, dataset.exp_id)
    assert dataset.run_id \
        == mut_queries.get_last_run(dataset.conn)
Exemplo n.º 2
0
def test_get_last_run_no_runs(experiment):
    assert None is mut_queries.get_last_run(experiment.conn, experiment.exp_id)
    assert None is mut_queries.get_last_run(experiment.conn)
Exemplo n.º 3
0
 def last_data_set(self) -> DataSet:
     """Get the last dataset of this experiment"""
     run_id = get_last_run(self.conn, self.exp_id)
     if run_id is None:
         raise ValueError('There are no runs in this experiment')
     return load_by_id(run_id)