MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / check_mfa_enabled

Function check_mfa_enabled

web/pgadmin/authenticate/mfa/tests/test_config.py:26–31  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

24
25
26def check_mfa_enabled(test):
27 config.MFA_ENABLED = test.enabled
28 config.MFA_SUPPORTED_METHODS = test.supported_list
29
30 if mfa_enabled(__mfa_is_enabled, __mfa_is_disabled) != test.expected:
31 test.fail(test.fail_msg)
32
33
34def log_message_in_init_app(test):

Callers

nothing calls this directly

Calls 1

mfa_enabledFunction · 0.90

Tested by

no test coverage detected