Merge pull request #1198 from dod-ccpo/ignore-audit-log-in-coverage

Exclude audit log from coverage
This commit is contained in:
leigh-mil 2019-11-21 16:25:37 -05:00 committed by GitHub
commit 6e6b910d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,17 @@
[run]
omit = atst/routes/dev.py
omit =
atst/routes/dev.py
atst/domain/audit_log.py
atst/models/mixins/auditable.py
atst/models/audit_event.py
branch = True
[report]
exclude_lines =
pragma: no cover
if app.config.get("USE_AUDIT_LOG", False)
def event_details
def history
def resource_type
def renderAuditEvent
def activity_history

View File

@ -101,6 +101,7 @@ def test_get_portfolio_events_includes_app_and_env_events():
assert "environment_role" in resource_types
@pytest.mark.audit_log
def test_get_application_events():
# add in some portfolio level events
portfolio = PortfolioFactory.create()