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
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
"""Exercise cli/mail.py commands."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typer.testing import CliRunner
|
|
|
|
from cli.mail import app
|
|
|
|
runner = CliRunner()
|
|
|
|
|
|
class TestAllHelp:
|
|
def test_provision(self):
|
|
assert runner.invoke(app, ["provision", "--help"]).exit_code == 0
|
|
|
|
def test_up(self):
|
|
assert runner.invoke(app, ["up", "--help"]).exit_code == 0
|
|
|
|
def test_down(self):
|
|
assert runner.invoke(app, ["down", "--help"]).exit_code == 0
|
|
|
|
def test_status(self):
|
|
assert runner.invoke(app, ["status", "--help"]).exit_code == 0
|
|
|
|
def test_dns(self):
|
|
assert runner.invoke(app, ["dns", "--help"]).exit_code == 0
|
|
|
|
def test_dkim_export(self):
|
|
assert runner.invoke(app, ["dkim-export", "--help"]).exit_code == 0
|
|
|
|
def test_attach_smarthost(self):
|
|
assert runner.invoke(app, ["attach-smarthost", "--help"]).exit_code == 0
|
|
|
|
def test_rotate_creds(self):
|
|
assert runner.invoke(app, ["rotate-creds", "--help"]).exit_code == 0
|
|
|
|
def test_seed_mailboxes(self):
|
|
assert runner.invoke(app, ["seed-mailboxes", "--help"]).exit_code == 0
|
|
|
|
def test_wire_git(self):
|
|
assert runner.invoke(app, ["wire-git", "--help"]).exit_code == 0
|