feat(Q5): add package event types and package_events table
This commit is contained in:
21
tests/unit/test_package_schema.py
Normal file
21
tests/unit/test_package_schema.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from vigilar.constants import EventType
|
||||
from vigilar.storage.schema import package_events
|
||||
|
||||
|
||||
def test_package_delivered_event_type():
|
||||
assert EventType.PACKAGE_DELIVERED == "PACKAGE_DELIVERED"
|
||||
|
||||
|
||||
def test_package_reminder_event_type():
|
||||
assert EventType.PACKAGE_REMINDER == "PACKAGE_REMINDER"
|
||||
|
||||
|
||||
def test_package_collected_event_type():
|
||||
assert EventType.PACKAGE_COLLECTED == "PACKAGE_COLLECTED"
|
||||
|
||||
|
||||
def test_package_events_table_columns():
|
||||
col_names = [c.name for c in package_events.columns]
|
||||
assert "camera_id" in col_names
|
||||
assert "detected_at" in col_names
|
||||
assert "status" in col_names
|
||||
Reference in New Issue
Block a user