def test_registry__add_logger(registry_fixture): registry = Registry(registry_filename=TEST_FILENAME) registry.reset_defaults() package = "test-package" registry.add_logger(package) assert package in registry.list_loggers() registry.remove_logger(package) assert package not in registry.list_loggers()
def add_logger(package_name): """Add logging for a package.""" registry = Registry() registry.add_logger(package_name)