exclude audit log related functions from coverage

This commit is contained in:
leigh-mil 2019-11-20 11:11:23 -05:00
parent 3f146c7da8
commit dd148f0837
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()