Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions airflow-ctl-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ dependencies = [
"apache-airflow-devel-common",
]

[tool.pytest.ini_options]
addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath"
[tool.pytest]
addopts = [
"-rasl",
"--verbosity=2",
"-p", "no:flaky",
"-p", "no:nose",
"-p", "no:legacypath",
]

norecursedirs = [
".eggs",
]
Expand Down
4 changes: 2 additions & 2 deletions airflow-ctl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ input = "../airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-ge
output = "src/airflowctl/api/datamodels/generated.py"

## pytest settings ##
[tool.pytest.ini_options]
[tool.pytest]
addopts = [
"--tb=short",
"-rasl",
Expand Down Expand Up @@ -196,7 +196,7 @@ testpaths = [
]
asyncio_default_fixture_loop_scope = "function"

pythonpath = "tests"
pythonpath = ["tests"]

# Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests.
tmp_path_retention_count = "2"
Expand Down
9 changes: 7 additions & 2 deletions clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@ include = [
"/airflow_client",
]

[tool.pytest.ini_options]
[tool.pytest]
# make sure that pytest.ini is not read from pyproject.toml in paraent directories
addopts = "--color=yes --cov-config=pyproject.toml --cov=airflow_client"
addopts = [
"--color=yes",
"--cov-config=pyproject.toml",
"--cov=airflow_client",
]

norecursedirs = [
]
log_level = "INFO"
Expand Down
11 changes: 9 additions & 2 deletions dev/breeze/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,15 @@ name = "airflow_breeze"
line-length = 110
target-version = ['py310', 'py311', 'py312']

[tool.pytest.ini_options]
addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath"
[tool.pytest]
addopts = [
"-rasl",
"--verbosity=2",
"-p", "no:flaky",
"-p", "no:nose",
"-p", "no:legacypath",
]

norecursedirs = [
".eggs",
]
Expand Down
10 changes: 8 additions & 2 deletions docker-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ dependencies = [
"apache-airflow-devel-common",
]

[tool.pytest.ini_options]
addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath"
[tool.pytest]
addopts = [
"-rasl",
"--verbosity=2",
"-p", "no:flaky",
"-p", "no:nose",
"-p", "no:legacypath",
]
norecursedirs = [
".eggs",
]
Expand Down
10 changes: 8 additions & 2 deletions helm-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ dependencies = [
"apache-airflow-providers-cncf-kubernetes",
]

[tool.pytest.ini_options]
addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath"
[tool.pytest]
addopts = [
"-rasl",
"--verbosity=2",
"-p", "no:flaky",
"-p", "no:nose",
"-p", "no:legacypath",
]
norecursedirs = [
".eggs",
]
Expand Down
10 changes: 8 additions & 2 deletions kubernetes-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ dependencies = [
"requests>=2.32.0,<3",
]

[tool.pytest.ini_options]
addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath"
[tool.pytest]
addopts = [
"-rasl",
"--verbosity=2",
"-p", "no:flaky",
"-p", "no:nose",
"-p", "no:legacypath",
]
norecursedirs = [
".eggs",
]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ mark-parentheses = false
fixture-parentheses = false

## pytest settings ##
[tool.pytest.ini_options]
[tool.pytest]
addopts = [
"--tb=short",
"-rasl",
Expand Down
10 changes: 8 additions & 2 deletions task-sdk-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ dependencies = [
"apache-airflow-devel-common",
]

[tool.pytest.ini_options]
addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath"
[tool.pytest]
addopts = [
"-rasl",
"--verbosity=2",
"-p", "no:flaky",
"-p", "no:nose",
"-p", "no:legacypath",
]
norecursedirs = [
".eggs",
]
Expand Down
4 changes: 2 additions & 2 deletions task-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ url = 'http://0.0.0.0:8080/execution/openapi.json'
output = 'src/airflow/sdk/api/datamodels/_generated.py'

## pytest settings ##
[tool.pytest.ini_options]
[tool.pytest]
addopts = [
"--tb=short",
"-rasl",
Expand Down Expand Up @@ -230,7 +230,7 @@ testpaths = [
]
asyncio_default_fixture_loop_scope = "function"

pythonpath = "tests"
pythonpath = ["tests"]

# Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests.
tmp_path_retention_count = "2"
Expand Down