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

Method test_create_basic

tests/utils/test_statistics.py:105–115  ·  view source on GitHub ↗

Test creating basic DatasetStats.

(self)

Source from the content-addressed store, hash-verified

103 """Tests for DatasetStats dataclass."""
104
105 def test_create_basic(self):
106 """Test creating basic DatasetStats."""
107 stats = DatasetStats(
108 path="/data/test.json",
109 source="TestSource",
110 total_count=1000,
111 rejected_count=100,
112 )
113
114 assert stats.path == "/data/test.json"
115 assert stats.total_count == 1000
116
117 def test_kept_count_property(self):
118 """Test kept_count property."""

Callers

nothing calls this directly

Calls 1

DatasetStatsClass · 0.90

Tested by

no test coverage detected