feat: add backup monitoring pydantic models
This commit is contained in:
@@ -14,3 +14,18 @@ def test_backup_schema_created():
|
||||
assert "backup_jobs" in table_names
|
||||
assert "backup_runs" in table_names
|
||||
assert "backup_alerts" in table_names
|
||||
|
||||
|
||||
def test_backup_report_model():
|
||||
from media_library_viewer_api.models.backups import BackupReportRequest
|
||||
|
||||
report = BackupReportRequest(
|
||||
name="test-backup",
|
||||
started_at="2026-05-11T02:00:00Z",
|
||||
status="success",
|
||||
ended_at="2026-05-11T02:15:00Z",
|
||||
duration_ms=900000,
|
||||
bytes_transferred=1024,
|
||||
)
|
||||
assert report.name == "test-backup"
|
||||
assert report.status == "success"
|
||||
|
||||
Reference in New Issue
Block a user