From 3a89ffcba5b6eb9e37619f67b56aadfea2ee2a09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 12 Jun 2024 21:20:36 +0200 Subject: [PATCH] test(ocpp-server): add task to run server MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/ocpp-server/README.md | 2 +- tests/ocpp-server/pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ocpp-server/README.md b/tests/ocpp-server/README.md index e2a8149c..bb5d5b17 100644 --- a/tests/ocpp-server/README.md +++ b/tests/ocpp-server/README.md @@ -15,7 +15,7 @@ poetry install To start the server, run the `server.py` script: ```shell -python server.py +poetry run task server ``` The server will start listening for connections on port 9000. diff --git a/tests/ocpp-server/pyproject.toml b/tests/ocpp-server/pyproject.toml index d0c6d4e4..c83625fb 100644 --- a/tests/ocpp-server/pyproject.toml +++ b/tests/ocpp-server/pyproject.toml @@ -17,6 +17,7 @@ black = "^24" flake8 = "^7" [tool.taskipy.tasks] +server = "python server.py" format = "black . && isort ." lint = "black --check --diff . && isort --check --diff . && flake8 ." -- 2.34.1