Skip to content

Commit 16a5809

Browse files
added a test for coverage
1 parent 03b0bd8 commit 16a5809

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/server/skills/test_catalog.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,11 @@ async def test_reading_a_file_deleted_after_load_is_an_internal_error_without_a_
497497
(tmp_path / "git-workflow" / "guide.md").write_bytes(b"# Guide\n")
498498
catalog = await SkillCatalog.load(FilesystemSkillProvider(tmp_path), parse_frontmatter=_parse)
499499
(tmp_path / "git-workflow" / "guide.md").unlink()
500+
caplog.set_level(logging.INFO, logger=SERVER_LOGGER)
500501

501-
with caplog.at_level(logging.INFO, logger=SERVER_LOGGER):
502-
async with Client(MCPServer("skills", extensions=[catalog])) as client:
503-
with pytest.raises(MCPError) as exc_info:
504-
await client.read_resource("skill://git-workflow/guide.md")
502+
async with Client(MCPServer("skills", extensions=[catalog])) as client:
503+
with pytest.raises(MCPError) as exc_info:
504+
await client.read_resource("skill://git-workflow/guide.md")
505505

506506
assert exc_info.value.code == INTERNAL_ERROR
507507
assert (

0 commit comments

Comments
 (0)