# Path: ciao_contrib/logger_wrapper.py
# class NullHandler(logging.Handler):
# class CIAOLogger(logging.getLoggerClass()):
#     def emit(self, record):
# def _lvl_to_v(lvl):
# def _v_to_lvl(v):
# def _check_verbose(verbose):
#     def __init__(self, name, verbose=-1, level=None):
#     def verbose(self):
#     def verbose(self, verbose):
#     def getEffectiveVerbose(self):
#     def verbose0(self, msg):
#     def verbose1(self, msg):
#     def verbose2(self, msg):
#     def verbose3(self, msg):
#     def verbose4(self, msg):
#     def verbose5(self, msg):
# def get_logger(lgr):
# def get_module_logger(lgr):
# def initialize_module_logger(name):
# def initialize_logger(name, verbose=0, out=sys.stdout):
# def get_verbosity():
# def get_effective_verbosity():
# def set_verbosity(verbose=1):
# def get_module_verbosity():
# def get_module_effective_verbosity():
# def set_module_verbosity(verbose=1):
# def make_verbose_level(progname, verbose):
# def preprocess_arglist(args):
# def set_handle_ciao_errors_debug(flag=False):
# def get_handle_ciao_errors_debug():
# def _add_color(txt):
# def _handle_traceback():
# def handle_ciao_errors(toolname, version=None):
#     def decorator(fn):
#         def new_fn(*args, **kw):
# VNOTSET = -1
# V0 = _v_to_lvl(0)
# V1 = _v_to_lvl(1)
# V2 = _v_to_lvl(2)
# V3 = _v_to_lvl(3)
# V4 = _v_to_lvl(4)
# V5 = _v_to_lvl(5)


import logging
import pytest
from ciao_contrib import logger_wrapper as lw
"""Basic tests of the logger_wrapper interface"""





NAME = 'testing'
lw.initialize_logger(NAME)


@pytest.fixture
def reset():
    yield
    lw.set_verbosity(0)


def test_default_verbosity():

# Path: ciao_contrib/logger_wrapper.py
# class NullHandler(logging.Handler):
# class CIAOLogger(logging.getLoggerClass()):
#     def emit(self, record):
# def _lvl_to_v(lvl):
# def _v_to_lvl(v):
# def _check_verbose(verbose):
#     def __init__(self, name, verbose=-1, level=None):
#     def verbose(self):
#     def verbose(self, verbose):
#     def getEffectiveVerbose(self):
#     def verbose0(self, msg):
#     def verbose1(self, msg):
#     def verbose2(self, msg):
#     def verbose3(self, msg):
#     def verbose4(self, msg):
#     def verbose5(self, msg):
# def get_logger(lgr):
# def get_module_logger(lgr):
# def initialize_module_logger(name):
# def initialize_logger(name, verbose=0, out=sys.stdout):
# def get_verbosity():
# def get_effective_verbosity():
# def set_verbosity(verbose=1):
# def get_module_verbosity():
# def get_module_effective_verbosity():
# def set_module_verbosity(verbose=1):
# def make_verbose_level(progname, verbose):
# def preprocess_arglist(args):
# def set_handle_ciao_errors_debug(flag=False):
# def get_handle_ciao_errors_debug():
# def _add_color(txt):
# def _handle_traceback():
# def handle_ciao_errors(toolname, version=None):
#     def decorator(fn):
#         def new_fn(*args, **kw):
# VNOTSET = -1
# V0 = _v_to_lvl(0)
# V1 = _v_to_lvl(1)
# V2 = _v_to_lvl(2)
# V3 = _v_to_lvl(3)
# V4 = _v_to_lvl(4)
# V5 = _v_to_lvl(5)


# Path: tests/test_logger_wrapper.py
import logging
import pytest
from ciao_contrib import logger_wrapper as lw

"""Basic tests of the logger_wrapper interface"""





NAME = 'testing'
lw.initialize_logger(NAME)


@pytest.fixture
def reset():
    yield
    lw.set_verbosity(0)


def test_default_verbosity():

    assert lw.get_verbosity() == 0