pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
502 B
18 lines
502 B
import pytest
|
|
from blockbuster import blockbuster_ctx
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def blockbuster():
|
|
with blockbuster_ctx("fastapi") as bb:
|
|
bb.functions["io.BufferedReader.read"].can_block_in(
|
|
"starlette/testclient.py", "receive"
|
|
)
|
|
for func in [
|
|
"os.stat",
|
|
"io.TextIOWrapper.read",
|
|
]:
|
|
bb.functions[func].can_block_in(
|
|
"pydantic/networks.py", "import_email_validator"
|
|
)
|
|
yield bb
|
|
|