def test_setup_ensemble_experiment(self): config_file = self.createTestPath('local/poly_example/poly.ert') with ErtTestContext('test_single_test_run', config_file) as work_area: ert = work_area.getErt() notifier = ErtCliNotifier(ert, config_file) ERT.adapt(notifier) model, argument = model_factory._setup_single_test_run() self.assertTrue(isinstance(model, EnsembleExperiment)) self.assertEqual(1, len(argument.keys())) self.assertTrue("active_realizations" in argument)
def test_setup_single_test_run(self): config_file = self.createTestPath("local/poly_example/poly.ert") with ErtTestContext("test_single_test_run", config_file) as work_area: ert = work_area.getErt() model = model_factory._setup_single_test_run(ert) self.assertTrue(isinstance(model, SingleTestRun)) self.assertEqual(1, len(model._simulation_arguments.keys())) self.assertTrue( "active_realizations" in model._simulation_arguments) model.create_context()
def test_setup_single_test_run(self): config_file = self.createTestPath("local/poly_example/poly.ert") with ErtTestContext("test_single_test_run", config_file) as work_area: ert = work_area.getErt() notifier = ErtCliNotifier(ert, config_file) ERT.adapt(notifier) model, argument = model_factory._setup_single_test_run() self.assertTrue(isinstance(model, SingleTestRun)) self.assertEqual(1, len(argument.keys())) self.assertTrue("active_realizations" in argument) model.create_context(argument)