Skip to content

Commit a8c7bdc

Browse files
author
root
committed
Make Copilot skills warning test less brittle
1 parent d56b80e commit a8c7bdc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/integrations/test_integration_copilot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def test_skills_setup_does_not_warn_about_legacy_default(self, tmp_path):
5555
warnings.simplefilter("always")
5656
created = copilot.setup(tmp_path, m, parsed_options={"skills": True})
5757

58-
assert len(caught) == 0
58+
assert not any(
59+
"Copilot legacy markdown mode is deprecated" in str(item.message)
60+
for item in caught
61+
)
5962
assert any(f.name == "SKILL.md" for f in created)
6063

6164
def test_setup_creates_companion_prompts(self, tmp_path):

0 commit comments

Comments
 (0)