From 2db91eb118a63ad78568b76345c88636abfbd889 Mon Sep 17 00:00:00 2001 From: Benjoyo Date: Thu, 1 Feb 2024 13:31:44 +0100 Subject: [PATCH] try to fix integration test --- bpm-ai-connectors-c8/bpm_ai_connectors_c8/main.py | 2 +- bpm-ai-connectors-c8/tests/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bpm-ai-connectors-c8/bpm_ai_connectors_c8/main.py b/bpm-ai-connectors-c8/bpm_ai_connectors_c8/main.py index 2a9fd3f..82d0184 100644 --- a/bpm-ai-connectors-c8/bpm_ai_connectors_c8/main.py +++ b/bpm-ai-connectors-c8/bpm_ai_connectors_c8/main.py @@ -53,7 +53,7 @@ async def main(host=None, port=None): logger.debug(worker.tasks) - logger.info(f"Starting connector worker.") + logger.info("Starting connector worker.") await worker.work() logger.info("Exited connector worker.") diff --git a/bpm-ai-connectors-c8/tests/conftest.py b/bpm-ai-connectors-c8/tests/conftest.py index 314c899..2a2bc65 100644 --- a/bpm-ai-connectors-c8/tests/conftest.py +++ b/bpm-ai-connectors-c8/tests/conftest.py @@ -27,8 +27,8 @@ class Starter(ProcessStarter): def connector_runtime(xprocess, zeebe_test_engine): class Starter(ProcessStarter): pattern = "Starting connector worker" - popen_kwargs = {"cwd": "../bpm_ai_connectors_c8"} - args = ['python', 'main.py', '--host', zeebe_test_engine.host, '--port', zeebe_test_engine.engine_port] + popen_kwargs = {"cwd": ".."} + args = ['python', '-m' 'bpm_ai_connectors_c8.main', '--host', zeebe_test_engine.host, '--port', zeebe_test_engine.engine_port] xprocess.ensure("connector_runtime", Starter) yield