From be8b27e1d31cd3b5c0c85b814a1b5a611a82ed79 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Thu, 21 Nov 2024 13:19:36 -0500 Subject: [PATCH] fixup! fix quality --- edx_arch_experiments/datadog_monitoring/signals/handlers.py | 2 +- edx_arch_experiments/datadog_monitoring/tests/test_apps.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edx_arch_experiments/datadog_monitoring/signals/handlers.py b/edx_arch_experiments/datadog_monitoring/signals/handlers.py index b6430bf..04b5ab3 100644 --- a/edx_arch_experiments/datadog_monitoring/signals/handlers.py +++ b/edx_arch_experiments/datadog_monitoring/signals/handlers.py @@ -15,7 +15,7 @@ def init_worker_process(sender, **kwargs): """ Adds a Datadog span processor to each worker process. - + We have to do this from inside the worker processes because they fork from the parent process before the plugin app is initialized. """ diff --git a/edx_arch_experiments/datadog_monitoring/tests/test_apps.py b/edx_arch_experiments/datadog_monitoring/tests/test_apps.py index cf03b4d..bdea120 100644 --- a/edx_arch_experiments/datadog_monitoring/tests/test_apps.py +++ b/edx_arch_experiments/datadog_monitoring/tests/test_apps.py @@ -20,4 +20,4 @@ def test_signal_has_receiver(self): was already imported. """ # the name of the function is in the weakref __repr__ - assert 'init_worker_process' in worker_process_init.receivers[0][1].__repr__() + assert 'init_worker_process' in repr(worker_process_init.receivers[0][1])