示例#1
0
 def _execute(self, workflow, flow, tab_results, expect_log_level=logging.DEBUG):
     with tempfile_context(prefix="execute-tab-output", suffix=".arrow") as out_path:
         with self.assertLogs(level=expect_log_level):
             result = self.run_with_async_db(
                 execute_tab_flow(workflow, flow, tab_results, out_path)
             )
             yield result
示例#2
0
 def _execute(self, workflow, flow, tab_results, expect_log_level=logging.DEBUG):
     with EDITABLE_CHROOT.acquire_context() as chroot_context:
         with chroot_context.tempdir_context(prefix="test_tab") as tempdir:
             with chroot_context.tempfile_context(
                 prefix="execute-tab-output", suffix=".arrow", dir=tempdir
             ) as out_path:
                 with self.assertLogs("renderer.execute", level=expect_log_level):
                     result = self.run_with_async_db(
                         execute_tab_flow(
                             chroot_context, workflow, flow, tab_results, out_path
                         )
                     )
                     yield result