Skip to content

Commit df6b26d

Browse files
authored
Merge pull request #33 from sacha-development-stuff/codex/fix-code-coverage-failure
Add targeted tests for OAuth flows and resilience checks
2 parents c606f6c + ed4d93e commit df6b26d

File tree

6 files changed

+812
-2
lines changed

6 files changed

+812
-2
lines changed

tests/server/fastmcp/resources/test_file_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def test_missing_file_error(self, temp_file: Path):
105105
@pytest.mark.anyio
106106
async def test_permission_error(temp_file: Path):
107107
"""Test reading a file without permissions."""
108-
if os.geteuid() == 0:
108+
if os.geteuid() == 0: # pragma: no cover
109109
pytest.skip("Permission test not reliable when running as root")
110110
temp_file.chmod(0o000) # Remove all permissions
111111
try:

tests/shared/test_streamable_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ async def run_tool():
12201220
assert result.content[0].text == "Completed"
12211221

12221222
# Allow any pending notifications to be processed
1223-
for _ in range(50):
1223+
for _ in range(50): # pragma: no cover
12241224
if captured_notifications:
12251225
break
12261226
await anyio.sleep(0.1)

0 commit comments

Comments
 (0)