Skip to content

Commit

Permalink
add no cover
Browse files Browse the repository at this point in the history
  • Loading branch information
dstathis committed Feb 23, 2024
1 parent 7239baf commit 21e5690
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cos_alerter/alerter.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ def initialize():
"notify_time"
]

# This is difficult to test in unit tests because it acquires and does not release all of the
# locks. When integration tests have been solved we need to remove the "no cover" from this
# method.
@staticmethod
def dump_and_pause():
def dump_and_pause(): # pragma: no cover
"""Dump the state of the program and exit gracefully.
This function acquires all the locks and never releases them, affectively pausing the
Expand Down

0 comments on commit 21e5690

Please sign in to comment.