From b8327c56d50e6acd77f506f157e6453d48747e6d Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Tue, 24 Nov 2020 07:26:01 +0100
Subject: [PATCH] TMSS-190: fixed t_qa_service

---
 QA/QA_Service/lib/qa_service.py    | 4 ++++
 QA/QA_Service/test/t_qa_service.py | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/QA/QA_Service/lib/qa_service.py b/QA/QA_Service/lib/qa_service.py
index 18bd13f9c1f..992ddb00017 100644
--- a/QA/QA_Service/lib/qa_service.py
+++ b/QA/QA_Service/lib/qa_service.py
@@ -69,6 +69,10 @@ class QAFilteringOTDBBusListener(OTDBBusListener):
 
 class QAFilteringTMSSSubTaskBusListener(TMSSBusListener):
     class QAFilteringTMSSSubTaskEventMessageHandler(UsingToBusMixin, TMSSEventMessageHandler):
+        def __init__(self):
+            UsingToBusMixin.__init__(self)
+            TMSSEventMessageHandler.__init__(self)
+
         def _send_qa_command_message(self, subtask_id: int, command_subject: str):
             with TMSSsession.create_from_dbcreds_for_ldap() as tmsssession:
                 tmsssession.set_subtask_status(subtask_id, 'queueing')
diff --git a/QA/QA_Service/test/t_qa_service.py b/QA/QA_Service/test/t_qa_service.py
index fe5bfc908ac..8daf86ce36f 100755
--- a/QA/QA_Service/test/t_qa_service.py
+++ b/QA/QA_Service/test/t_qa_service.py
@@ -96,7 +96,8 @@ class TestQAService(unittest.TestCase):
         cls.tmp_exchange = TemporaryExchange("%s_%s" % (cls.__name__, cls.TEST_UUID))
         cls.tmp_exchange.open()
 
-        cls.tmss_test_env = TMSSTestEnvironment(exchange=cls.tmp_exchange.address)
+        cls.tmss_test_env = TMSSTestEnvironment(exchange=cls.tmp_exchange.address,
+                                                start_postgres_listener=True, start_ra_test_environment=True)
         cls.tmss_test_env.start()
         cls.tmss_test_env.populate_schemas()
 
-- 
GitLab