Files
plex-playlist/backend/tests/integration/test_api.py
Cliff Hill debe7e27ea
Some checks failed
Tests / Frontend Tests (TypeScript + Vue + Yarn Berry) (push) Failing after 7m57s
Tests / Backend Tests (Python 3.13 + uv) (push) Failing after 9m31s
Did things.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-23 13:45:54 -04:00

25 lines
713 B
Python

"""Integration tests for API endpoints."""
import pytest
from backend.main import app
from fastapi.testclient import TestClient
client = TestClient(app)
@pytest.mark.integration
class TestAPIIntegration:
"""Integration tests for API endpoints."""
def test_health_check(self) -> None:
"""Test API health check endpoint."""
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "healthy"}
def test_root_endpoint(self) -> None:
"""Test root endpoint."""
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"message": "Plex Playlist Backend API"}