36 lines
770 B
Python
36 lines
770 B
Python
"""
|
|
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
|