ワンクリックで
af-test
Write tests for Airflow backend API endpoints following project conventions.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Write tests for Airflow backend API endpoints following project conventions.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Rebase open PRs onto the default branch, resolve conflicts, and force push.
Review Airflow UI code for consistency, best practices, and conventions.
Develop Airflow UI features from an issue link or text description.
Generate a concise PR changelog summary from the current branch diff.
Generate a Google Slides presentation from a paper PDF URL using gws CLI.
Set up git aliases.
SOC 職業分類に基づく
| name | af-test |
| description | Write tests for Airflow backend API endpoints following project conventions. |
Write tests for Airflow backend API endpoints.
/af-test <endpoint file path or description>
Tests mirror the source tree:
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/foo.pyairflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_foo.pyTest<EndpointFunction> (e.g. TestGetPartitionedDagRuns)test_should_response_401, test_should_response_403pytestmark = pytest.mark.db_test at module level@pytest.fixture(autouse=True) for cleanup@pytest.mark.parametrize with ids for all variantsExample: instead of test_pending, test_fulfilled, test_partial, write one test_should_response_200 parametrized on (num_assets, received_count, fulfilled).
dag_maker fixture to create DAGs, call dag_maker.sync_dagbag_to_db() aftersession fixture for direct DB operations (add, flush, commit)test_client for authenticated requests, unauthenticated_test_client / unauthorized_test_client for auth testsassert_queries_count to verify query efficiency where existing tests dotests_common.test_utils.db: clear_db_dags, clear_db_serialized_dags, clear_db_apdr, clear_db_pakl, etc.Read the endpoint code to understand the route, parameters, response model, and dependencies.
Read 1-2 existing test files in the same directory to match the local style. Use the closest neighbor (e.g. test_assets.py for asset-related endpoints).
Write the test file with:
Run ruff: prek .:ruff to fix lint issues.