Skip to content

Commit 57c7ea2

Browse files
authored
fix lint
1 parent b0fe101 commit 57c7ea2

6 files changed

+16
-14
lines changed

python/e2e/test_skills.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import tempfile
88
import pytest
99

10-
from .testharness import E2ETestContext, get_final_assistant_message
10+
from .testharness import E2ETestContext
1111

1212
pytestmark = pytest.mark.asyncio(loop_scope="module")
1313

@@ -63,7 +63,8 @@ async def test_not_apply_skill_when_disabled_via_disabled_skills(
6363
):
6464
"""Test that disabledSkills prevents skill from being applied"""
6565
session = await ctx.client.create_session(
66-
{"skill_directories": [skills_dir], "disabled_skills": ["test-skill"]}
66+
{"skill_directories": [skills_dir],
67+
"disabled_skills": ["test-skill"]}
6768
)
6869

6970
assert session.session_id is not None
@@ -89,9 +90,7 @@ async def test_apply_skill_on_session_resume_with_skill_directories(
8990
assert SKILL_MARKER not in message1.data.content
9091

9192
# Resume with skillDirectories - skill should now be active
92-
session2 = await ctx.client.resume_session(
93-
session_id, {"skill_directories": [skills_dir]}
94-
)
93+
session2 = await ctx.client.resume_session(session_id, {"skill_directories": [skills_dir]})
9594

9695
assert session2.session_id == session_id
9796

test/snapshots/session/should_abort_a_session.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ conversations:
66
content: ${system}
77
- role: user
88
content: run the shell command 'sleep 100' (note this works on both bash and PowerShell)
9+
- role: assistant
10+
content: I'll run the sleep command for 100 seconds.
911
- role: assistant
1012
tool_calls:
1113
- id: toolcall_0
@@ -19,13 +21,14 @@ conversations:
1921
type: function
2022
function:
2123
name: ${shell}
22-
arguments: '{"description":"Run sleep 100 command","command":"sleep 100","mode":"sync","initial_wait":105}'
24+
arguments: '{"command":"sleep 100","description":"Run sleep 100 command","mode":"sync","initial_wait":105}'
2325
- messages:
2426
- role: system
2527
content: ${system}
2628
- role: user
2729
content: run the shell command 'sleep 100' (note this works on both bash and PowerShell)
2830
- role: assistant
31+
content: I'll run the sleep command for 100 seconds.
2932
tool_calls:
3033
- id: toolcall_0
3134
type: function
@@ -36,7 +39,7 @@ conversations:
3639
type: function
3740
function:
3841
name: ${shell}
39-
arguments: '{"description":"Run sleep 100 command","command":"sleep 100","mode":"sync","initial_wait":105}'
42+
arguments: '{"command":"sleep 100","description":"Run sleep 100 command","mode":"sync","initial_wait":105}'
4043
- role: tool
4144
tool_call_id: toolcall_0
4245
content: Intent logged

test/snapshots/skills/apply_skill_on_session_resume_with_skill_directories.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ conversations:
2424
content: >-
2525
<skill-context name="test-skill">
2626
27-
Base directory for this skill: /tmp/copilot-skills-test-e_oppucn/test-skill
27+
Base directory for this skill: /tmp/copilot-skills-test-brp0xbfl/test-skill
2828
2929
3030
---

test/snapshots/skills/load_and_apply_skill_from_skill_directories.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ conversations:
2020
content: >-
2121
<skill-context name="test-skill">
2222
23-
Base directory for this skill: /tmp/copilot-skills-test-e_oppucn/test-skill
23+
Base directory for this skill: /tmp/copilot-skills-test-brp0xbfl/test-skill
2424
2525
2626
---
@@ -41,4 +41,4 @@ conversations:
4141
4242
</skill-context>
4343
- role: assistant
44-
content: Hello! PINEAPPLE_COCONUT_42 - the test skill is active and ready to go.
44+
content: Hello! PINEAPPLE_COCONUT_42 - Hope you're having a great day!

test/snapshots/skills/should_apply_skill_on_session_resume_with_skilldirectories.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ conversations:
2424
content: >-
2525
<skill-context name="test-skill">
2626
27-
Base directory for this skill: /tmp/copilot-skills-test-eSUOPo/test-skill
27+
Base directory for this skill: /tmp/copilot-skills-test-f1ef743d-a194-4aa4-9809-43f2ce8086cb/test-skill
2828
2929
3030
---
@@ -45,4 +45,4 @@ conversations:
4545
4646
</skill-context>
4747
- role: assistant
48-
content: Hello again! PINEAPPLE_COCONUT_42 - I'm here and ready to assist you with your development tasks!
48+
content: Hello again! PINEAPPLE_COCONUT_42 - I'm here and ready to help with your tasks!

test/snapshots/skills/should_load_and_apply_skill_from_skilldirectories.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ conversations:
2020
content: >-
2121
<skill-context name="test-skill">
2222
23-
Base directory for this skill: /tmp/copilot-skills-test-eSUOPo/test-skill
23+
Base directory for this skill: /tmp/copilot-skills-test-21c50037-7c7d-406b-b336-3a384641e588/test-skill
2424
2525
2626
---
@@ -41,4 +41,4 @@ conversations:
4141
4242
</skill-context>
4343
- role: assistant
44-
content: Hello! PINEAPPLE_COCONUT_42 - the test skill is active and working.
44+
content: Hello! PINEAPPLE_COCONUT_42 - Hope you're having a great day!

0 commit comments

Comments
 (0)