Skip to content

Commit 79b5aa2

Browse files
Fix and update integration tests (#163)
The API client is a singleton, and many integration tests had issues running because the client got disconnected. Also the event loop was scoped for the session rather than per function (default set in pyproject.toml). So the client was updated so that it reconnects for each test to ensure its internal state is not corrupted and the event loop is now function scoped. Also the tests were updated to use the new endpoints and remove the ones that no longer exist.
2 parents a877a2b + 68b61b4 commit 79b5aa2

File tree

3 files changed

+198
-176
lines changed

3 files changed

+198
-176
lines changed

.github/workflows/integration_test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
os:
18-
- ubuntu-20.04
18+
- ubuntu-24.04
1919
python:
2020
- "3.11"
2121
runs-on: ${{ matrix.os }}
@@ -51,5 +51,3 @@ jobs:
5151
run: |
5252
pytest -vv integration_tests/
5353
timeout-minutes: 10
54-
55-

0 commit comments

Comments
 (0)