Skip to content

Commit f3f1c4b

Browse files
committed
Switch to pytest-asyncio
fixed dev dependencies Signed-off-by: Patrick Assuied <[email protected]>
1 parent f4d8a38 commit f3f1c4b

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install flake8 pytest
31+
pip install flake8 pytest pytest-cov pytest-asyncio
3232
pip install -r requirements.txt
3333
- name: Lint with flake8
3434
run: |

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ This will download the `orchestrator_service.proto` from the `microsoft/durablet
173173
Unit tests can be run using the following command from the project root. Unit tests _don't_ require a sidecar process to be running.
174174

175175
```sh
176+
pip3 install -r dev-requirements.txt
176177
make test-unit
177178
```
178179

@@ -188,6 +189,7 @@ durabletask-go --port 4001
188189
To run the E2E tests, run the following command from the project root:
189190

190191
```sh
192+
pip3 install -r dev-requirements.txt
191193
make test-e2e
192194
```
193195

dev-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
grpcio-tools==1.62.3 # 1.62.X is the latest version before protobuf 1.26.X is used which has breaking changes for Python
2+
pytest
3+
pytest-cov
4+
pytest-asyncio
5+
flake8

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
autopep8
22
grpcio>=1.60.0 # 1.60.0 is the version introducing protobuf 1.25.X support, newer versions are backwards compatible
33
protobuf
4-
pytest
5-
pytest-cov
64
asyncio

tests/durabletask/test_orchestration_e2e_async.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
# NOTE: These tests assume a sidecar process is running. Example command:
1414
# go install github.com/microsoft/durabletask-go@main
1515
# durabletask-go --port 4001
16-
pytestmark = [pytest.mark.e2e, pytest.mark.anyio]
17-
18-
19-
@pytest.fixture
20-
def anyio_backend():
21-
return 'asyncio'
16+
pytestmark = [pytest.mark.e2e, pytest.mark.asyncio]
2217

2318

2419
async def test_empty_orchestration():

0 commit comments

Comments
 (0)