This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0a1f1b533dd Add small nit to coding standards for agents (#65333)
0a1f1b533dd is described below
commit 0a1f1b533dd13edaffb2f6b96082b45aec708c6c
Author: Jens Scheffler <[email protected]>
AuthorDate: Wed Apr 15 21:35:33 2026 +0200
Add small nit to coding standards for agents (#65333)
---
AGENTS.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/AGENTS.md b/AGENTS.md
index 8d92b1cfe93..5ad16864d84 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -129,11 +129,12 @@ reported as such are described in "What is NOT considered
a security vulnerabili
- Add tests for new behavior — cover success, failure, and edge cases.
- Use pytest patterns, not `unittest.TestCase`.
- Use `spec`/`autospec` when mocking.
-- Use `time_machine` for time-dependent tests.
+- Use `time_machine` for time-dependent tests. Do not use `datetime.now()`
- Use `@pytest.mark.parametrize` for multiple similar inputs.
- Use `@pytest.mark.db_test` for tests that require database access.
- Test fixtures: `devel-common/src/tests_common/pytest_plugin.py`.
- Test location mirrors source: `airflow/cli/cli_parser.py` →
`tests/cli/test_cli_parser.py`.
+- Do not use `caplog` in tests, prefer checking logic and not log output.
## Commits and PRs