Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Feb 2, 2024
1 parent 21ca1fc commit dac790f
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 64 deletions.
126 changes: 63 additions & 63 deletions bpm-ai-connectors-c8/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bpm-ai-connectors-c8/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pytest = "^7.4.2"
pytest-dotenv = "^0.5.2"
pytest-asyncio = "^0.23.3"
pytest-zeebe = "^0.1.1"
protobuf = "^3.20.3"
pytest-timeout = "^2.2.0"
pytest-xprocess = "^0.23.0"
testcontainers = "^3.7.1"
Expand Down
4 changes: 3 additions & 1 deletion bpm-ai-connectors-c8/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ def ensure_openai_key() -> str:
@pytest.fixture
def connector_runtime(xprocess, zeebe_test_engine):
ensure_openai_key()

class Starter(ProcessStarter):
pattern = "Starting connector worker"
popen_kwargs = {"cwd": ".."}
args = ['python', '-m' 'bpm_ai_connectors_c8.main', '--host', zeebe_test_engine.host, '--port', zeebe_test_engine.engine_port]
args = ['python', '-m' 'bpm_ai_connectors_c8.main', '--host', zeebe_test_engine.host, '--port',
zeebe_test_engine.engine_port]

_, log_path = xprocess.ensure("connector_runtime", Starter)
yield
Expand Down

0 comments on commit dac790f

Please sign in to comment.