Rename audit log feature flag config variable

This commit is contained in:
graham-dds
2019-10-21 10:51:48 -04:00
parent c27e0e618e
commit 9de90d796d
7 changed files with 8 additions and 10 deletions

View File

@@ -42,11 +42,11 @@ def app(request):
def skip_audit_log(request):
"""
Conditionally skip tests marked with 'audit_log' based on the
AUDIT_LOG_FEATURE_TOGGLE config value.
USE_AUDIT_LOG config value.
"""
config = make_config()
if request.node.get_closest_marker("audit_log"):
use_audit_log = config.get("AUDIT_LOG_FEATURE_TOGGLE", False)
use_audit_log = config.get("USE_AUDIT_LOG", False)
if not use_audit_log:
pytest.skip("audit log feature flag disabled")