Exemple #1
0
def test_setup_logging_missing_config(path_exists):
    path_exists.return_value = False
    cli.setup_logging("/path/to/config")
Exemple #2
0
def test_setup_logging_missing_config(path_exists):
    path_exists.return_value = False
    cli.setup_logging("/path/to/config")
Exemple #3
0
def test_setup_logging(file_config, path_exists):
    path_exists.return_value = True
    cli.setup_logging("/path/to/config")
    path_exists.assert_called_with("/path/to/config")
    file_config.assert_called_with(
        "/path/to/config", defaults={"root_handler": "multilogServerHandler"})
Exemple #4
0
def test_setup_logging(file_config, path_exists):
    path_exists.return_value = True
    cli.setup_logging("/path/to/config")
    path_exists.assert_called_with("/path/to/config")
    file_config.assert_called_with("/path/to/config", defaults={"root_handler": "multilogServerHandler"})