Newer
Older
TIASDataHub / tests / catalog / test_queries.py
"""目録の集計."""

import sqlite3

from tiasdata import catalog


def test_count_kinds_after_initial_migration(catalog_conn: sqlite3.Connection) -> None:
    # SPEC_02「kinds」: 最初に用意する種類は asset 4 件・annotation 1 件.0002 で review を足した
    assert catalog.count_kinds(catalog_conn) == {"annotation": 2, "asset": 4}