queue processors: Exclude TestWorker from coverage.

This commit is contained in:
derAnfaenger
2017-11-06 20:49:27 +01:00
committed by Tim Abbott
parent 0709033858
commit c8e87a322d

View File

@@ -421,7 +421,7 @@ class TestWorker(QueueProcessingWorker):
# creating significant side effects. It can be useful in development or
# for troubleshooting prod/staging. It pulls a message off the test queue
# and appends it to a file in /tmp.
def consume(self, event):
def consume(self, event): # nocoverage
# type: (Mapping[str, Any]) -> None
fn = settings.ZULIP_WORKER_TEST_FILE
message = ujson.dumps(event)