def test_logging_disabled(): run_app('exec -mc --set log_mode=off echo') assert log.is_disabled()
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()
def test_logging_disabled_in_config(): create_test_config({"log": {"mode": False}}) run_app('exec echo') assert log.is_disabled()
def test_logging_disabled_by_default(): create_test_config(dict()) run_app('exec echo') assert log.is_disabled()
def test_logging_disabled(): run_app('exec -mc --set log_enabled=false echo') assert log.is_disabled()
def test_logging_enabled_in_config(): create_test_config({"log": {"enabled": True}}) run_app('exec echo') assert not log.is_disabled()