From 645a5ea82f79fabd3f89e52f3785aeab481da3ad Mon Sep 17 00:00:00 2001 From: Teagan Glenn Date: Sat, 4 Oct 2025 05:39:29 -0600 Subject: [PATCH] test: resolve pytest warnings --- AGENTS.md | 2 +- docker/pyproject.deps.toml | 2 +- pyproject.toml | 2 +- tests/test_server.py | 4 ++-- uv.lock | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 422731e..68cacbc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -60,7 +60,7 @@ The project should handle natural-language searches and recommendations such as: ## Checks - Run linting with `uv run ruff check .`. -- Run the test suite with `uv run pytest` and ensure it passes before committing. +- Run the test suite with `uv run pytest`, ensure it passes, and address any warnings emitted by the run before committing. ## Testing Practices - Use realistic (or as realistic as possible) data in tests; avoid meaningless placeholder values. diff --git a/docker/pyproject.deps.toml b/docker/pyproject.deps.toml index 10e8e86..ac30729 100644 --- a/docker/pyproject.deps.toml +++ b/docker/pyproject.deps.toml @@ -1,6 +1,6 @@ [project] name = "mcp-plex" -version = "0.26.46" +version = "0.26.47" requires-python = ">=3.11,<3.13" dependencies = [ "fastmcp>=2.11.2", diff --git a/pyproject.toml b/pyproject.toml index e379711..74ccba1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mcp-plex" -version = "0.26.46" +version = "0.26.47" description = "Plex-Oriented Model Context Protocol Server" requires-python = ">=3.11,<3.13" diff --git a/tests/test_server.py b/tests/test_server.py index bbcb73e..41818ac 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -434,7 +434,7 @@ def test_rest_query_media_invalid_json(monkeypatch): client = TestClient(module.server.http_app()) response = client.post( "/rest/query-media", - data="not json", + content="not json", headers={"content-type": "application/json"}, ) assert response.status_code == 200 @@ -452,7 +452,7 @@ async def fake_render(self, arguments): client = TestClient(module.server.http_app()) response = client.post( "/rest/prompt/media-info", - data="not json", + content="not json", headers={"content-type": "application/json"}, ) assert response.status_code == 200 diff --git a/uv.lock b/uv.lock index 4b933f3..8898194 100644 --- a/uv.lock +++ b/uv.lock @@ -730,7 +730,7 @@ wheels = [ [[package]] name = "mcp-plex" -version = "0.26.46" +version = "0.26.47" source = { editable = "." } dependencies = [ { name = "fastapi" },