First commit with entire first rendition of the project

This commit is contained in:
Your Name
2026-06-25 21:18:07 -06:00
commit 551322a94b
42 changed files with 4346 additions and 0 deletions

15
tests/test_mqtt.py Normal file
View File

@@ -0,0 +1,15 @@
from spectra.mqtt import _lookup_image_path, _db_path
class TestDbPath:
def test_db_path_ends_web_db(self):
path = _db_path()
assert path.endswith("web.db")
class TestLookupImagePath:
def test_nonexistent_id_returns_none(self):
assert _lookup_image_path(99999) is None
def test_negative_id_returns_none(self):
assert _lookup_image_path(-1) is None