Ejemplo n.º 1
0
 def test_fail(self):
     data_description = DD1
     df = _data_description_summarize_sample_id(2, data_description)
     for date, value in data_description.data[0].items():
         row = df[df[DATE_OPTION_KEY] == date].iloc[0]
         assert row[DATA_DESCRIPTION_COL] == data_description.name
         assert row[ERROR_COL] == _format_exception(TestException)
Ejemplo n.º 2
0
 def test_no_loading_options(self):
     row = _pipeline_sample_getter_summarize_sample_id(4, PIPE).iloc[0]
     assert row[ERROR_COL] == _format_exception(NoDatesAvailableError())
Ejemplo n.º 3
0
 def test_fail_one_data_description(self):
     row = _pipeline_sample_getter_summarize_sample_id(2, PIPE).iloc[0]
     assert row[ERROR_COL] == _format_exception(TestException)
Ejemplo n.º 4
0
 def test_fail_date_select(self):
     row = _pipeline_sample_getter_summarize_sample_id(3, PIPE).iloc[0]
     assert row[ERROR_COL] == _format_exception(NoDatesAvailableError())
Ejemplo n.º 5
0
 def test_no_loading_options(self):
     data_description = DD2
     row = _data_description_summarize_sample_id(4, data_description).iloc[0]
     assert row[DATA_DESCRIPTION_COL] == data_description.name
     assert row[ERROR_COL] == _format_exception(NO_LOADING_OPTIONS_ERROR)