From: Jérôme Benoit Date: Wed, 12 Jun 2024 19:20:36 +0000 (+0200) Subject: test(ocpp-server): add task to run server X-Git-Tag: v1.3.7~62 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3a89ffcba5b6eb9e37619f67b56aadfea2ee2a09;p=e-mobility-charging-stations-simulator.git test(ocpp-server): add task to run server Signed-off-by: Jérôme Benoit --- 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 ."