|
|
@ -1,4 +1,5 @@ |
|
|
import importlib |
|
|
import importlib |
|
|
|
|
|
import sys |
|
|
from types import ModuleType |
|
|
from types import ModuleType |
|
|
from typing import Annotated, Any |
|
|
from typing import Annotated, Any |
|
|
from unittest.mock import Mock, patch |
|
|
from unittest.mock import Mock, patch |
|
|
@ -12,8 +13,13 @@ from fastapi.testclient import TestClient |
|
|
name="module", |
|
|
name="module", |
|
|
params=[ |
|
|
params=[ |
|
|
"tutorial008_py39", |
|
|
"tutorial008_py39", |
|
|
# Fails with `NameError: name 'DepA' is not defined` |
|
|
pytest.param( |
|
|
pytest.param("tutorial008_an_py39", marks=pytest.mark.xfail), |
|
|
"tutorial008_an_py39", |
|
|
|
|
|
marks=pytest.mark.xfail( |
|
|
|
|
|
sys.version_info < (3, 14), |
|
|
|
|
|
reason="Fails with `NameError: name 'DepA' is not defined`", |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
], |
|
|
], |
|
|
) |
|
|
) |
|
|
def get_module(request: pytest.FixtureRequest): |
|
|
def get_module(request: pytest.FixtureRequest): |
|
|
|