Fix Zotero table models for Zotero 9:
- Remove stale Annotations/Highlights/Transaction* models
- Add ItemAnnotations, RetractedItems, DeletedCollections,
DeletedSearches, DbDebug1
- Fix ItemAttachments, Libraries, Users column mismatches
New test files covering all major modules:
- cli/{bib,prisma,rec,zot,mail,run} deep exercising tests
- mail/{droplet,postmark,resend,cloudflare} lifecycle tests
- bib/{iom,oig,pincite,sync,regulations_gov,email_ingest,format,store}
- prisma/{vpn,fetch,export,llm,screen,eligibility,extract,project,ingest,flow}
- aco/lake/{unity,quality,deploy} + api/aco coverage gaps
- zot/{ops,db,extract,duck} + rec/{report,engine,base,pricers}
- pfs/{pipe,rules,eq,files}
Add pytest-xdist for parallel test execution.
Tracks #353
28 lines
815 B
Python
28 lines
815 B
Python
"""Deep tests for mail.resend."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from unittest.mock import MagicMock, patch
|
|
|
|
|
|
class TestPublishResendDns:
|
|
def test_publishes_records(self):
|
|
from mail.resend import publish_resend_dns
|
|
|
|
cf_client = MagicMock()
|
|
domain_info = {
|
|
"name": "test.io",
|
|
"records": [
|
|
{"name": "resend._domainkey", "type": "TXT", "value": "v=DKIM1;p=xxx"},
|
|
],
|
|
}
|
|
with (
|
|
patch("mail.cloudflare._zone_id", return_value="z1"),
|
|
patch("mail.cloudflare._upsert_record") as mu,
|
|
patch(
|
|
"mail.cloudflare._headers", return_value={"Authorization": "Bearer x"}
|
|
),
|
|
):
|
|
publish_resend_dns(domain_info, cf_client)
|
|
assert mu.called
|