Files
intercept/tests/test_app.py
Smittix e00fbfddc1 v2.26.0: fix SSE fanout crash and branded logo FOUC
- Fix SSE fanout thread AttributeError when source queue is None during
  interpreter shutdown by snapshotting to local variable with null guard
- Fix branded "i" logo rendering oversized on first page load (FOUC) by
  adding inline width/height to SVG elements across 10 templates
- Bump version to 2.26.0 in config.py, pyproject.toml, and CHANGELOG.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:51:27 +00:00

39 lines
1.0 KiB
Python

"""Tests for main application routes."""
def test_index_page(client):
"""Test that index page loads."""
response = client.get('/')
assert response.status_code == 200
assert b'INTERCEPT' in response.data
def test_dependencies_endpoint(client):
"""Test dependencies endpoint returns valid JSON."""
response = client.get('/dependencies')
assert response.status_code == 200
data = response.get_json()
assert 'modes' in data
assert 'os' in data
def test_devices_endpoint(client):
"""Test devices endpoint returns list."""
response = client.get('/devices')
assert response.status_code == 200
data = response.get_json()
assert isinstance(data, list)
def test_satellite_dashboard(client):
"""Test satellite dashboard loads."""
response = client.get('/satellite/dashboard')
assert response.status_code == 200
def test_adsb_dashboard(client):
"""Test ADS-B dashboard loads."""
response = client.get('/adsb/dashboard')
assert response.status_code == 200