MCPcopy Index your code
hub / github.com/geldata/gel / test_cqa_empty_init

Method test_cqa_empty_init

tests/test_sourcecode.py:41–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39class TestCodeQuality(unittest.TestCase):
40
41 def test_cqa_empty_init(self):
42 edgepath = find_edgedb_root()
43 for sn in EMPTY_INIT_FILES:
44 fn = os.path.join(edgepath, sn)
45 if not os.path.exists(fn):
46 self.fail(f'not found an empty __init__.py file at {fn}')
47
48 with open(fn, 'rt') as f:
49 for line in f:
50 if line.startswith('#') or not line.strip():
51 continue
52
53 self.fail(
54 f'{fn} must be an empty file (except Python comments)')
55
56 def test_cqa_ruff(self):
57 edgepath = find_edgedb_root()

Callers

nothing calls this directly

Calls 2

startswithMethod · 0.80
find_edgedb_rootFunction · 0.70

Tested by

no test coverage detected