원클릭으로
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 페이지를 검토하고 설치를 진행할 수 있습니다.
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.
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.