Add FastAPI-based monitoring dashboard with support for Codex CLI and Devin API v3 Enterprise consumption tracking. Includes Docker deployment, systemd service configuration, kiosk mode launcher, comprehensive documentation, and demo mode for testing without credentials.
17 lines
512 B
Python
17 lines
512 B
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).parents[1]
|
|
|
|
|
|
def test_frontend_assets_exist_and_use_api():
|
|
html = (ROOT / 'templates/index.html').read_text()
|
|
script = (ROOT / 'static/app.js').read_text()
|
|
css = (ROOT / 'static/style.css').read_text()
|
|
assert '/static/style.css' in html
|
|
assert '/static/app.js' in html
|
|
assert "fetch('/api/usage'" in script
|
|
assert 'entry.id === limit.id' in script
|
|
assert 'requestAnimationFrame' in script
|
|
assert 'grid-template-columns' in css
|