示例#1
0
def test_logging_disabled():
    run_app('exec -mc --set log_mode=off echo')
    assert log.is_disabled()
示例#2
0
def test_logging_enabled_cli_override():
    create_test_config({"log": {"mode": False}})
    run_app('exec --set log_mode=on echo')
    assert not log.is_disabled()
示例#3
0
def test_logging_disabled_in_config():
    create_test_config({"log": {"mode": False}})
    run_app('exec echo')
    assert log.is_disabled()
示例#4
0
def test_logging_disabled_by_default():
    create_test_config(dict())
    run_app('exec echo')
    assert log.is_disabled()
示例#5
0
def test_logging_disabled():
    run_app('exec -mc --set log_enabled=false echo')
    assert log.is_disabled()
示例#6
0
def test_logging_enabled_in_config():
    create_test_config({"log": {"enabled": True}})
    run_app('exec echo')
    assert not log.is_disabled()