16 lines
506 B
Python
16 lines
506 B
Python
from __future__ import annotations
|
|
import os, sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
from sfm.database import SeismoDb
|
|
from minimateplus.models import Event
|
|
|
|
|
|
def test_query_events_includes_reviewed_real(tmp_path: Path):
|
|
db = SeismoDb(tmp_path / "s.db")
|
|
ev = Event(index=0)
|
|
ev._waveform_key = bytes.fromhex("01110000")
|
|
db.insert_events([ev], serial="BE1")
|
|
assert "reviewed_real" in db.query_events(serial="BE1")[0]
|