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

Method test_create_basic

tests/utils/test_statistics.py:32–45  ·  view source on GitHub ↗

Test creating basic OperatorStats.

(self)

Source from the content-addressed store, hash-verified

30 """Tests for OperatorStats dataclass."""
31
32 def test_create_basic(self):
33 """Test creating basic OperatorStats."""
34 stats = OperatorStats(
35 name="TestOperator",
36 input_count=100,
37 output_count=90,
38 rejected_count=10,
39 rewritten_count=5,
40 execution_time=1.5,
41 )
42
43 assert stats.name == "TestOperator"
44 assert stats.input_count == 100
45 assert stats.output_count == 90
46
47 def test_reject_rate_property(self):
48 """Test reject_rate property."""

Callers

nothing calls this directly

Calls 1

OperatorStatsClass · 0.90

Tested by

no test coverage detected