Esempio n. 1
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)
Esempio n. 2
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)