Exemple #1
0
 def setup(self):
     if path.__base_dir__:
         shutil.rmtree(str(path.temp_path()), ignore_errors=True)
     if self._warnings:
         warnings.resetwarnings()
     tryp.development = True
     tryp_stdout_logging()
     install_assertion_builder(AssBuilder)
Exemple #2
0
Fichier : run.py Projet : tek/pytek
def _load_entry_point_config(module, config_alias=None, parse_cli=True,
                             positional=()):
    if config_alias is None:
        config_alias = _valid_parent_module(module)
    Config.setup(config_alias)
    if parse_cli:
        Config.parse_cli(positional=positional)
        conf = Config['general']
        if conf['stdout']:
            level = (logging.DEBUG if conf['debug'] else
                     logging.VERBOSE if conf['verbose'] else None)
            tryp_stdout_logging(level)
            if conf['debug']:
                global dodebug
                dodebug = True
Exemple #3
0
 def setup(self, *a, **kw):
     tryp.development = True
     tryp_stdout_logging()
     super(Spec, self).setup(*a, **kw)