(self)
| 39 | class 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() |
nothing calls this directly
no test coverage detected