mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	queue processors: Exclude TestWorker from coverage.
This commit is contained in:
		@@ -421,7 +421,7 @@ class TestWorker(QueueProcessingWorker):
 | 
				
			|||||||
    # creating significant side effects.  It can be useful in development or
 | 
					    # creating significant side effects.  It can be useful in development or
 | 
				
			||||||
    # for troubleshooting prod/staging.  It pulls a message off the test queue
 | 
					    # for troubleshooting prod/staging.  It pulls a message off the test queue
 | 
				
			||||||
    # and appends it to a file in /tmp.
 | 
					    # and appends it to a file in /tmp.
 | 
				
			||||||
    def consume(self, event):
 | 
					    def consume(self, event):  # nocoverage
 | 
				
			||||||
        # type: (Mapping[str, Any]) -> None
 | 
					        # type: (Mapping[str, Any]) -> None
 | 
				
			||||||
        fn = settings.ZULIP_WORKER_TEST_FILE
 | 
					        fn = settings.ZULIP_WORKER_TEST_FILE
 | 
				
			||||||
        message = ujson.dumps(event)
 | 
					        message = ujson.dumps(event)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user