fix: mettre à jour les tests pytest

This commit is contained in:
2026-03-27 22:06:36 +01:00
parent 9dfc7457a0
commit 32c5310e37
2 changed files with 11 additions and 19 deletions

View File

@@ -8,6 +8,10 @@ dependencies = [
"tqdm==4.67.3", "tqdm==4.67.3",
] ]
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = ["tests"]
[project.optional-dependencies] [project.optional-dependencies]
test = ["pytest==8.4.2", "requests-mock==1.12.1", "flake8==7.3.0"] test = ["pytest==8.4.2", "requests-mock==1.12.1", "flake8==7.3.0"]
doc = ["mkdocs<2.0.0", "mkdocs-material==9.6.23", "mkdocstrings[python]"] doc = ["mkdocs<2.0.0", "mkdocs-material==9.6.23", "mkdocstrings[python]"]

View File

@@ -185,17 +185,11 @@ def mock_site():
{dumps({ {dumps({
"props": { "props": {
"pageProps": { "pageProps": {
"initialReduxState": { "products": [
"categ": { {"seoKeyword": "/nino-negri-5-stelle-sfursat-2022.html",},
"content": { {"seoKeyword": "/poubelle",},
"products": [ {"seoKeyword": "/",}
{"seoKeyword": "/nino-negri-5-stelle-sfursat-2022.html",}, ]
{"seoKeyword": "/poubelle",},
{"seoKeyword": "/",}
]
}
}
}
} }
} }
} }
@@ -213,14 +207,8 @@ def mock_site():
{dumps({ {dumps({
"props": { "props": {
"pageProps": { "pageProps": {
"initialReduxState": { "products": [
"categ": { ]
"content": {
"products": [
]
}
}
}
} }
} }
} }