MCPcopy Create free account
hub / github.com/explorerhq/sql-explorer / test_get_run_count

Method test_get_run_count

explorer/tests/test_models.py:66–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.assertFalse(q2.shared)
65
66 def test_get_run_count(self):
67 q = SimpleQueryFactory()
68 self.assertEqual(q.get_run_count(), 0)
69 expected = 4
70 for _ in range(0, expected):
71 q.log()
72 self.assertEqual(q.get_run_count(), expected)
73
74 def test_avg_duration(self):
75 q = SimpleQueryFactory()

Callers

nothing calls this directly

Calls 3

SimpleQueryFactoryClass · 0.90
get_run_countMethod · 0.80
logMethod · 0.80

Tested by

no test coverage detected