test: add basic diagnostic tests to validate CI environment
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 2m37s
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Backend Tests (push) Has been cancelled
Run Tests / Test Summary (push) Has been cancelled

This commit is contained in:
Gan, Jimmy
2026-03-31 11:38:44 +08:00
parent c98db64f32
commit 01344e8b2d
2 changed files with 56 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
"""
Basic diagnostic tests to validate test environment.
"""
import sys
import pytest
def test_python_version():
"""Verify Python version."""
assert sys.version_info >= (3, 10), f"Python version: {sys.version}"
def test_imports():
"""Verify all required modules can be imported."""
try:
import fastapi
import uvicorn
import docker
import httpx
import jwt
import passlib
import pyotp
import asyncssh
import pytest
import pytest_asyncio
import pytest_cov
import pytest_mock
assert True
except ImportError as e:
pytest.fail(f"Import failed: {e}")
def test_basic_math():
"""Sanity check that tests can run."""
assert 1 + 1 == 2