Skip to content

Commit afb6ccc

Browse files
authored
test: resolve pytest warnings (#76)
1 parent 121b776 commit afb6ccc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The project should handle natural-language searches and recommendations such as:
6060

6161
## Checks
6262
- Run linting with `uv run ruff check .`.
63-
- Run the test suite with `uv run pytest` and ensure it passes before committing.
63+
- Run the test suite with `uv run pytest`, ensure it passes, and address any warnings emitted by the run before committing.
6464

6565
## Testing Practices
6666
- Use realistic (or as realistic as possible) data in tests; avoid meaningless placeholder values.

docker/pyproject.deps.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-plex"
3-
version = "0.26.46"
3+
version = "0.26.47"
44
requires-python = ">=3.11,<3.13"
55
dependencies = [
66
"fastmcp>=2.11.2",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "mcp-plex"
7-
version = "0.26.46"
7+
version = "0.26.47"
88

99
description = "Plex-Oriented Model Context Protocol Server"
1010
requires-python = ">=3.11,<3.13"

tests/test_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def test_rest_query_media_invalid_json(monkeypatch):
434434
client = TestClient(module.server.http_app())
435435
response = client.post(
436436
"/rest/query-media",
437-
data="not json",
437+
content="not json",
438438
headers={"content-type": "application/json"},
439439
)
440440
assert response.status_code == 200
@@ -452,7 +452,7 @@ async def fake_render(self, arguments):
452452
client = TestClient(module.server.http_app())
453453
response = client.post(
454454
"/rest/prompt/media-info",
455-
data="not json",
455+
content="not json",
456456
headers={"content-type": "application/json"},
457457
)
458458
assert response.status_code == 200

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)