ci: add strict-no-cover to detect unnecessary coverage pragmas (#1897)

This commit is contained in:
Max Isbey 2026-01-23 20:00:20 +00:00 • committed by GitHub
commit a7ddfdae07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ async def test_desktop(monkeypatch: pytest.MonkeyPatch):
assert file_1 in content.text
assert file_2 in content.text
# might be a bug, but the test is passing
else: # pragma: no cover
else: # pragma: lax no cover
assert "/fake/path/file1.txt" in content.text
assert "/fake/path/file2.txt" in content.text