Skip to content

Commit 55abd68

Browse files
committed
ci: centralize pytest configuration in root
1 parent beaadc8 commit 55abd68

4 files changed

Lines changed: 8 additions & 28 deletions

File tree

packages/aws-durable-execution-sdk-python-examples/pyproject.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ dependencies = [
1515
[tool.hatch.build.targets.wheel]
1616
packages = ["src"]
1717

18-
[tool.pytest.ini_options]
19-
testpaths = ["test"]
20-
addopts = "-v --strict-markers"
21-
pythonpath = ["."]
22-
markers = [
23-
"example: marks tests as example tests (deselect with '-m \"not example\"')",
24-
"durable_execution: marks tests that use the durable_runner fixture (not used for test selection)",
25-
]
26-
2718
[tool.hatch.envs.examples.scripts]
2819
cli = "python cli.py {args}"
2920
bootstrap = "python cli.py bootstrap"

packages/aws-durable-execution-sdk-python-otel/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,3 @@ lines-after-imports = 2
8080
"SIM117",
8181
"TRY301",
8282
]
83-
84-
[tool.pytest.ini_options]
85-
testpaths = ["tests"]
86-
addopts = "-v --strict-markers"

packages/aws-durable-execution-sdk-python/pyproject.toml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,3 @@ lines-after-imports = 2
7373
"SIM117",
7474
"TRY301",
7575
]
76-
77-
[tool.pytest.ini_options]
78-
# Declare custom markers to avoid warnings with --strict-markers
79-
markers = [
80-
# Used for test selection with -m example
81-
"example: marks tests as example tests (deselect with '-m \"not example\"')",
82-
# Used for configuration - passes handler and lambda_function_name to durable_runner fixture
83-
"durable_execution: marks tests that use the durable_runner fixture (not used for test selection)",
84-
]
85-
# Default test discovery paths
86-
testpaths = ["tests"]
87-
# Default options for all test runs
88-
addopts = "-v --strict-markers"

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ cov = "pytest --cov-report=term-missing --cov {args}"
2222
examples-integration = "pytest --runner-mode=cloud -m example packages/aws-durable-execution-sdk-python-examples/test/ -v {args}"
2323

2424
[tool.pytest.ini_options]
25-
addopts = "--import-mode=importlib"
25+
# Declare custom markers to avoid warnings with --strict-markers
26+
addopts = "-v --strict-markers --import-mode=importlib"
2627
testpaths = [
2728
"packages/aws-durable-execution-sdk-python/tests",
2829
"packages/aws-durable-execution-sdk-python-otel/tests",
2930
"packages/aws-durable-execution-sdk-python-examples/test",
3031
]
31-
32+
markers = [
33+
# Used for test selection with -m example
34+
"example: marks tests as example tests (deselect with '-m \"not example\"')",
35+
# Used for configuration - passes handler and lambda_function_name to durable_runner fixture
36+
"durable_execution: marks tests that use the durable_runner fixture (not used for test selection)",
37+
]
3238

3339
[tool.hatch.envs.types]
3440
workspace.members = ["packages/*"]

0 commit comments

Comments
 (0)