pierrejeambrun commented on code in PR #76541:
URL: https://github.com/apache/airflow/pull/76541#discussion_r4482076775
##########
providers/common/ai/tests/unit/common/ai/test_skills.py:
##########
@@ -137,6 +137,16 @@ def test_records_the_cloned_commit(self, mock_repo):
assert locations[0].directory.endswith(os.sep + "skills")
assert locations[1] == _SkillsLocation("/local/skills")
+ @patch("git.Repo")
+ def test_empty_repository_clones_with_no_commit(self, mock_repo):
+ mock_repo.clone_from.return_value.head.is_valid.return_value = False
Review Comment:
Now clones a real `git init --bare` repo from `tmp_path`; it fails on main's
clone code.
--
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]