mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-24 03:48:05 +00:00
chore: block network access from unit tests
this blocks network access for all `tests/unit/` tests. `tests/integration/` are untouched. it also introduces an `allow_network` marker to explicitly allow network access.
This commit is contained in:
parent
30b2e6a495
commit
a01a679914
5 changed files with 32 additions and 0 deletions
|
|
@ -393,6 +393,7 @@ async def test_process_vllm_chat_completion_stream_response_no_choices():
|
|||
assert chunks[0].event.event_type.value == "start"
|
||||
|
||||
|
||||
@pytest.mark.allow_network
|
||||
def test_chat_completion_doesnt_block_event_loop(caplog):
|
||||
loop = asyncio.new_event_loop()
|
||||
loop.set_debug(True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue