Did things.
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

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-23 13:45:54 -04:00
parent 2c8f424a81
commit debe7e27ea
5 changed files with 56 additions and 11 deletions

View File

@@ -244,10 +244,10 @@ jobs:
# Install all dependencies from package.json
echo "Installing dependencies from package.json..."
yarn install --verbose
yarn install
echo "Dependencies installation complete"
yarn list --depth=0
echo "Yarn Berry setup successful"
- name: Verify TypeScript and Vue installation
working-directory: ./frontend
@@ -256,9 +256,9 @@ jobs:
# Check that key packages are available
echo "Checking installed packages..."
yarn list vue || echo "Vue check completed"
yarn list typescript || echo "TypeScript check completed"
yarn list @vitejs/plugin-vue || echo "Vue plugin check completed"
yarn info vue || echo "Vue check completed"
yarn info typescript || echo "TypeScript check completed"
yarn info @vitejs/plugin-vue || echo "Vue plugin check completed"
# Try TypeScript compilation if available
echo "Attempting TypeScript type checking..."

View File

@@ -0,0 +1 @@
"""Tests package for the backend."""

View File

@@ -0,0 +1 @@
"""Integration tests package."""

View File

@@ -1,6 +1,10 @@
"""Integration tests for API endpoints."""
import pytest
from backend.main import app
from fastapi.testclient import TestClient
client = TestClient(app)
@pytest.mark.integration
@@ -9,10 +13,12 @@ class TestAPIIntegration:
def test_health_check(self) -> None:
"""Test API health check endpoint."""
# This would test actual API health endpoint
assert True
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "healthy"}
def test_playlist_crud(self) -> None:
"""Test playlist CRUD operations."""
# This would test creating, reading, updating, deleting playlists
assert True
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"}

View File

@@ -0,0 +1,37 @@
"""Basic tests for the backend application."""
from backend.main import app, health_check, read_root
def test_app_creation():
"""Test that the FastAPI app is created properly."""
assert app is not None
assert app.title == "Plex Playlist Backend"
assert app.version == "0.1.0"
def test_read_root():
"""Test the root endpoint function."""
result = read_root()
assert result == {"message": "Plex Playlist Backend API"}
def test_health_check():
"""Test the health check endpoint function."""
result = health_check()
assert result == {"status": "healthy"}
def test_typeguard_validation():
"""Test that typeguard is working for type validation."""
# Test a function with type hints to ensure typeguard is active
def typed_function(x: int, y: str) -> str:
return f"{x}: {y}"
# This should work fine
result = typed_function(42, "test")
assert result == "42: test"
# This would fail with typeguard active, but we'll just test the happy path
# to ensure coverage of our code without breaking the test