예제 #1
0
 def handle_request(self) -> RemoteRunOperationResult:
     base = RunOperationTask.run(self)
     result = RemoteRunOperationResult(results=base.results,
                                       generated_at=base.generated_at,
                                       logs=[],
                                       success=base.success,
                                       elapsed_time=base.elapsed_time)
     return result
예제 #2
0
 def _runtime_initialize(self):
     return RunOperationTask._runtime_initialize(self)
예제 #3
0
 def _get_kwargs(self):
     if isinstance(self.args.args, dict):
         return self.args.args
     else:
         return RunOperationTask._get_kwargs(self)
예제 #4
0
 def handle_request(self) -> RemoteRunOperationResult:
     success, _ = RunOperationTask.run(self)
     result = RemoteRunOperationResult(logs=[], success=success)
     return result
예제 #5
0
 def test_run_operation_task_with_bad_path(self):
     self.args.project_dir = 'bad_path'
     with self.assertRaises(dbt.exceptions.RuntimeException):
         new_task = RunOperationTask.from_args(self.args)
예제 #6
0
 def test_run_operation_task(self):
     self.assertEqual(os.getcwd(), INITIAL_ROOT)
     self.assertNotEqual(INITIAL_ROOT, self.project_dir)
     new_task = RunOperationTask.from_args(self.args)
     self.assertEqual(os.getcwd(), self.project_dir)
예제 #7
0
 def handle_request(self) -> RemoteRunOperationResult:
     base = RunOperationTask.run(self)
     result = RemoteRunOperationResult.from_local_result(base=base, logs=[])
     return result