From 478344c85cd04abb9c9849220d1b302a6fc2ec0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= <sybren@stuvel.eu> Date: Thu, 10 Jan 2019 15:01:57 +0100 Subject: [PATCH] Enable debug logging in flamenco_worker.commands while testing commands --- tests/test_runner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_runner.py b/tests/test_runner.py index 454787bd..ef1d8aa7 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -1,4 +1,5 @@ import asyncio +import logging from unittest.mock import Mock, call from tests.abstract_worker_test import AbstractWorkerTest @@ -18,6 +19,8 @@ class AbstractCommandTest(AbstractWorkerTest): self.fworker.register_log = CoroMock() self.fworker.register_task_update = CoroMock() + logging.getLogger('flamenco_worker.commands').setLevel(logging.DEBUG) + def tearDown(self): # This is required for subprocesses, otherwise unregistering signal handlers goes wrong. self.loop.close() -- GitLab