def test_stats(repository: Repository) -> None: _insert_todo(repository, "This is a Todo!") _insert_todo(repository, "This is a ANOTHER Todo!") id_3, _ = _insert_todo(repository, "This is a yet ANOTHER Todo!") repository.deactivate(id_3) stats = repository.stats() assert stats == Stats(active=2, inactive=1)
def test_stats_empty(repository: Repository) -> None: stats = repository.stats() assert stats == Stats(active=0, inactive=0)