amoghrajesh commented on code in PR #77571:
URL: https://github.com/apache/airflow/pull/77571#discussion_r4691198651


##########
scripts/tests/ci/prek/test_check_fork_ci_gate_config.py:
##########
@@ -107,6 +114,9 @@ def test_rejects(base, new, message):
     ],
 )
 def test_resolve_base_ref(mock_git, monkeypatch, base_ref_env, git_results, 
expected):

Review Comment:
   The no-base cases now call `get_airflow_branch()`, which reads the real 
`branch_defaults.py`. The test passes only because `git_results` matches on 
`args[0]`, so it never checks the branch. Can you patch `get_airflow_branch` 
with `autospec=True`, `return_value="main"`. Also suggesting to rename id 
`fork-push-fetches-upstream-main` to `fork-push-fetches-upstream-branch`, since 
on the backport it fetches `v3-4-test`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to