def test_get_console_fqdn_with_env_var_missing(): with pytest.raises( KeyError, match='Environment variable QRADAR_CONSOLE_FQDN is not set'): qpylib.get_console_fqdn()
def test_get_console_fqdn_with_env_var_set(env_qradar_console_fqdn): assert qpylib.get_console_fqdn() == 'myhost.ibm.com'