Add channel material and downtime analytics
This commit is contained in:
@@ -48,10 +48,10 @@ SETTINGS = PostgresSettings("localhost", 5432, "analytics", "writer", "secret")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def storage(monkeypatch):
|
||||
# Real schema and INSERT semantics, with only driver transport adapted for SQLite.
|
||||
def storage(monkeypatch, sqlite_schema):
|
||||
# Production schema and INSERT semantics, adapted for the SQLite dialect/transport.
|
||||
database = sqlite3.connect(":memory:")
|
||||
database.executescript(Path("db/schema.sql").read_text())
|
||||
database.executescript(sqlite_schema)
|
||||
connection = MagicMock()
|
||||
|
||||
def execute(sql, params):
|
||||
|
||||
Reference in New Issue
Block a user