mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 07:10:00 -07:00
- 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>
39 lines
1.0 KiB
Python
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
|