def test_scenario1(self): """ Scenario: Successfully generating reports in Gazibit: Given I create BigML resources and share them uploading train "<data>" file to evaluate and log evaluation and reports in "<output>" And I check that the source has been created And I check that the dataset has been created and shared And I check that the model has been created and shared Then I check that the evaluation has been created and shared And I check that the Gazibit report has been created And I check that the Gazibit shared report has been created Examples: | data | output | | ../data/iris.csv | ./scenario_rpt_1/evaluation | """ print self.test_scenario1.__doc__ examples = [ ['data/iris.csv', 'scenario_rpt_1/evaluation']] for example in examples: print "\nTesting with:\n", example test_pred.i_create_all_resources_to_evaluate_and_report(self, data=example[0], output=example[1]) test_pred.i_check_create_source(self) test_pred.i_check_create_dataset_shared(self) test_pred.i_check_create_model_shared(self) test_pred.i_check_create_evaluation_shared(self) test_pred.i_check_gazibit_reports(self, shared=None) test_pred.i_check_gazibit_reports(self, shared='shared ')
def test_scenario1(self): """ Scenario: Successfully generating reports in Gazibit: Given I create BigML resources and share them uploading train "<data>" file to evaluate and log evaluation and reports in "<output>" And I check that the source has been created And I check that the dataset has been created and shared And I check that the model has been created and shared Then I check that the evaluation has been created and shared And I check that the Gazibit report has been created And I check that the Gazibit shared report has been created Examples: | data | output | | ../data/iris.csv | ./scenario_rpt_1/evaluation | """ print self.test_scenario1.__doc__ examples = [ ['data/iris.csv', 'scenario_rpt_1/evaluation']] for example in examples: print "\nTesting with:\n", example test_pred.i_create_all_resources_to_evaluate_and_report(self, data=example[0], output=example[1]) test_pred.i_check_create_source(self) test_pred.i_check_create_dataset_shared(self) test_pred.i_check_create_model_shared(self) test_pred.i_check_create_evaluation_shared(self) test_pred.i_check_gazibit_reports(self, shared=None) test_pred.i_check_gazibit_reports(self, shared='shared ')