Add channel material and downtime analytics
This commit is contained in:
1 parent
5452dc035b
commit
640ec53330
24 files changed
+2362
-76
No files matched your search
@@ -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