Coverage for tests/test_kinds.py: 100%
11 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-30 23:02 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-30 23:02 +0000
1"""Tests for `bunches.kinds`."""
3from __future__ import annotations
5import typing
7from bunches import kinds
10def test_subset_returns() -> None:
11 """Tests the options in `SubsetReturns`."""
12 assert typing.get_args(kinds.SubsetReturns) == ('class', 'copy', 'simple')
15def test_aliases() -> None:
16 """Tests that type aliases exist."""
17 assert kinds.GenericDict is not None
18 assert kinds.GenericList is not None
21def test_removed_members() -> None:
22 """Tests that unused members were removed."""
23 assert not hasattr(kinds, 'GenericSet')
24 assert not hasattr(kinds, '_MISSING')