MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_get_file_paths

Method test_get_file_paths

tests/datasets/test_config.py:155–168  ·  view source on GitHub ↗

Test getting all file paths.

(self)

Source from the content-addressed store, hash-verified

153 assert result.get("key") == "value"
154
155 def test_get_file_paths(self):
156 """Test getting all file paths."""
157 datasets = [
158 DatasetConfig(file_path="/data/a.json"),
159 DatasetConfig(file_path="/data/b.json"),
160 DatasetConfig(file_path="/data/c.json"),
161 ]
162 config = StandardConfig(datasets=datasets)
163 paths = config.get_file_paths()
164
165 assert len(paths) == 3
166 assert "/data/a.json" in paths
167 assert "/data/b.json" in paths
168 assert "/data/c.json" in paths
169
170 def test_get_file_paths_empty(self):
171 """Test getting file paths from empty config."""

Callers

nothing calls this directly

Calls 3

get_file_pathsMethod · 0.95
DatasetConfigClass · 0.90
StandardConfigClass · 0.90

Tested by

no test coverage detected