exclude audit log related functions from coverage
This commit is contained in:
parent
3f146c7da8
commit
dd148f0837
16
.coveragerc
16
.coveragerc
@ -1,3 +1,17 @@
|
|||||||
[run]
|
[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
|
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
|
||||||
|
@ -101,6 +101,7 @@ def test_get_portfolio_events_includes_app_and_env_events():
|
|||||||
assert "environment_role" in resource_types
|
assert "environment_role" in resource_types
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.audit_log
|
||||||
def test_get_application_events():
|
def test_get_application_events():
|
||||||
# add in some portfolio level events
|
# add in some portfolio level events
|
||||||
portfolio = PortfolioFactory.create()
|
portfolio = PortfolioFactory.create()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user