def run_zests_v2(self, cli_args, debug_mode):
    tell(f'Running zests v2...')
    with local.env(RUN_ENV='test', ZAP_DEBUG_MODE=debug_mode):
        zest_version = None
        try:
            from zest.version import __version__ as zest_version
        except ImportError:
            pass
        assert (zlog.config_dict is not None)
        assert zest_version.startswith('1.1.')
        with tmp.tmp_file() as tmp_path:
            with open(tmp_path, 'w') as f:
                f.write(json.dumps(zlog.config_dict))
            (local['python'][('-u', '-m', 'zest.zest_cli')].bound_command(*cli_args) & FG(retcode=None))
def run_zests_v2(self, cli_args, debug_mode):
    tell(f'Running zests v2...')
    with local.env(RUN_ENV='test', ZAP_DEBUG_MODE=debug_mode):
        zest_version = None
        try:
            from zest.version import __version__ as zest_version
        except ImportError:
            pass
        assert (zlog.config_dict is not None)
        assert zest_version.startswith('1.1.')
        with tmp.tmp_file() as tmp_path:
            with open(tmp_path, 'w') as f:
                f.write(json.dumps(zlog.config_dict))
            (local['python'][('-u', '-m', 'zest.zest_cli')].bound_command(*cli_args) & FG(retcode=None))