MCPcopy
hub / github.com/MinishLab/semble / test_get_extensions

Function test_get_extensions

tests/test_files.py:42–48  ·  view source on GitHub ↗

get_extensions returns the right extensions for each combination of content types.

(types: list[ContentType], includes: list[str], excludes: list[str])

Source from the content-addressed store, hash-verified

40 ],
41)
42def test_get_extensions(types: list[ContentType], includes: list[str], excludes: list[str]) -> None:
43 """get_extensions returns the right extensions for each combination of content types."""
44 exts = set(get_extensions(types))
45 for ext in includes:
46 assert ext in exts
47 for ext in excludes:
48 assert ext not in exts
49
50
51def test_all_excludes_data_extensions() -> None:

Callers

nothing calls this directly

Calls 1

get_extensionsFunction · 0.90

Tested by

no test coverage detected