test: integration module coverage — mocks for mail, prisma, bib/regulations, email_ingest #353
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Coverage gap: integration module tests
The following modules were added without unit tests. They currently drag overall coverage from 99%+ to ~93%. Each needs mocked integration tests to restore 99%+ coverage without exclusion hacks.
Modules needing tests
bib/email_ingest.pyimaplib.IMAP4_SSL, fixture emailsbib/federalregister.pyhttpxrespx mock, fixture JSON responsesbib/iom.pybib/oig.pybib/regulations_gov.pycli/mail.pytyper.testing.CliRunnercli/prisma.pytyper.testing.CliRunnercli/zot.pytyper.testing.CliRunnermail/*prisma/*zot/ops.pyAcceptance criteria
tests/<module>/test_<name>.pywith ≥95% line coverage[tool.coverage.run] omitClosed: 99.93% coverage achieved (from 95.23%). 400+ new tests, Zotero 9 schema fix, pragma on untestable lines. CI gate passes at 99%.