Skip to content

Commit 130d960

Browse files
committed
fix NEXUS-703: try to fix event loop in tests
1 parent 55b1a6f commit 130d960

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

_test_unstructured_client/integration/test_integration.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,9 @@ def test_partition_strategies(split_pdf, strategy, client, doc_path):
5050
assert len(response.elements)
5151

5252

53-
@pytest.fixture(scope="session")
54-
def event_loop():
55-
"""Make the loop session scope to use session async fixtures."""
56-
policy = asyncio.get_event_loop_policy()
57-
loop = policy.new_event_loop()
58-
yield loop
59-
loop.close()
60-
61-
6253
@pytest.mark.parametrize("split_pdf", [True, False])
6354
@pytest.mark.parametrize("error", [(500, ServerError), (403, SDKError), (422, HTTPValidationError)])
64-
def test_partition_handling_server_error(error, split_pdf, monkeypatch, doc_path, event_loop):
55+
def test_partition_handling_server_error(error, split_pdf, monkeypatch, doc_path):
6556
"""
6657
Mock different error responses, assert that the client throws the correct error
6758
"""

0 commit comments

Comments
 (0)