File tree Expand file tree Collapse file tree
tests/integration/api/workflows/products/discontinue_product Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 run : uv run --frozen -- poe check-code
4242 shell : bash
4343
44- - name : Check code (ty)
45- if : false
46- run : uv run --frozen -- poe check-code-ty
47- shell : bash
48-
4944 - name : Unit tests
5045 run : uv run --frozen -- pytest --cov=python_template --cov-branch tests/unit
5146 shell : bash
Original file line number Diff line number Diff line change 1212 "editor.defaultFormatter" : " charliermarsh.ruff"
1313 },
1414 "python.defaultInterpreterPath" : " .venv/bin/python" ,
15- "python.languageServer" : " Pylance" ,
16- "python.analysis.languageServerMode" : " full" ,
15+ "python.languageServer" : " None" ,
1716 "python.testing.pytestEnabled" : true ,
1817 "notebook.formatOnSave.enabled" : true ,
1918 "notebook.formatOnCellExecution" : true ,
Original file line number Diff line number Diff line change 11services :
22 cosmosdb :
3- image : mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-EN20251118
3+ image : mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-EN20251205
44 restart : always
55 ports :
66 - " 8081:8081"
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ requires-python = ">=3.14"
55dependencies = [
66 " aiohttp>=3.13.2" ,
77 " azure-cosmos>=4.14.2" ,
8- " azure-monitor-opentelemetry>=1.8.2 " ,
9- " fastapi[standard-no-fastapi-cloud-cli]>=0.123 .0" ,
8+ " azure-monitor-opentelemetry>=1.8.3 " ,
9+ " fastapi[standard-no-fastapi-cloud-cli]>=0.124 .0" ,
1010 " pydantic>=2.12.5" ,
1111 " pydantic-settings[azure-key-vault]>=2.12.0" ,
1212]
@@ -15,13 +15,12 @@ dependencies = [
1515dev = [
1616 " jupyter>=1.1.1" ,
1717 " poethepoet>=0.38.0" ,
18- " pyright[nodejs]>=1.1.407" ,
19- " pytest>=9.0.1" ,
18+ " pytest>=9.0.2" ,
2019 " pytest-asyncio>=1.3.0" ,
2120 " pytest-cov>=7.0.0" ,
2221 " pytest-mock>=3.15.1" ,
23- " ruff>=0.14.7 " ,
24- " ty>=0.0.1a29 " ,
22+ " ruff>=0.14.8 " ,
23+ " ty>=0.0.1a32 " ,
2524]
2625
2726[build-system ]
@@ -54,11 +53,9 @@ ignore = [
5453]
5554
5655[tool .pytest ]
57- pythonpath = [" tests" ]
5856strict = true
5957asyncio_mode = " auto"
6058asyncio_default_fixture_loop_scope = " function"
6159
6260[tool .poe .tasks ]
63- check-code.shell = " ruff check && ruff format --diff && pyright"
64- check-code-ty.shell = " ruff check && ruff format --diff && ty check"
61+ check-code.shell = " ruff check && ruff format --diff && ty check"
Original file line number Diff line number Diff line change 11import pytest
2- from test_utils .builders .domain .entities .product_builder import ProductBuilder
32
43from python_template .api .dependency_container import DependencyContainer
54from python_template .api .workflows .products .discontinue_product .discontinue_product_request import (
109)
1110from python_template .common .business_error import ProductAlreadyDiscontinuedError
1211from python_template .domain .entities .product import Product
12+ from tests .test_utils .builders .domain .entities .product_builder import ProductBuilder
1313
1414
1515class TestDiscontinueProductWorkflow :
You can’t perform that action at this time.
0 commit comments