test: account for pending publication table

This commit is contained in:
xavierk
2026-09-28 03:23:46 +05:30
parent 0d45f263d2
commit 847bde1be0
2 changed files with 4 additions and 4 deletions
+2 -3
View File
@@ -3,8 +3,7 @@
This module handles:
- Store initialization with WAL mode
- Schema versioning with PRAGMA user_version
- The six entities: samples, hour_observations, day_aggregates,
monitoring_periods, controller_segments, endurance_baseline
- Observation records, derived activity, publication state, and metadata
"""
import sqlite3
from pathlib import Path
@@ -33,7 +32,7 @@ def get_store_path(config: dict) -> Path:
def init_store(store_path: Path) -> sqlite3.Connection:
"""Initialize the observation store if not present.
Creates the database with WAL mode and all six entities.
Creates the observation schema, including private pending-publication storage.
Returns a connection to the store.
"""
conn = sqlite3.connect(str(store_path))