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
27 lines
713 B
Python
27 lines
713 B
Python
"""Exercise cli/zot.py commands."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typer.testing import CliRunner
|
|
|
|
from cli.zot import app
|
|
|
|
runner = CliRunner()
|
|
|
|
|
|
class TestAllHelp:
|
|
def test_dump_schema(self):
|
|
assert runner.invoke(app, ["dump-schema", "--help"]).exit_code == 0
|
|
|
|
def test_fix_dates(self):
|
|
assert runner.invoke(app, ["fix-dates", "--help"]).exit_code == 0
|
|
|
|
def test_fix_keys(self):
|
|
assert runner.invoke(app, ["fix-keys", "--help"]).exit_code == 0
|
|
|
|
def test_fix_fields(self):
|
|
assert runner.invoke(app, ["fix-fields", "--help"]).exit_code == 0
|
|
|
|
def test_verify_parity(self):
|
|
assert runner.invoke(app, ["verify-parity", "--help"]).exit_code == 0
|