Some checks failed
CI / skinny-install (aco) (push) Successful in 1m10s
CI / skinny-install (api) (push) Successful in 32s
CI / skinny-install (bcda) (push) Successful in 37s
CI / skinny-install (bib) (push) Successful in 35s
CI / skinny-install (bls) (push) Successful in 27s
CI / skinny-install (ccw) (push) Successful in 27s
CI / skinny-install (cli) (push) Successful in 39s
CI / skinny-install (cms) (push) Successful in 30s
CI / skinny-install (conf) (push) Successful in 27s
CI / skinny-install (opps) (push) Successful in 31s
CI / skinny-install (perf) (push) Successful in 40s
CI / skinny-install (pfs) (push) Successful in 36s
CI / skinny-install (rex) (push) Successful in 36s
CI / lint-test (push) Failing after 10m34s
Deploy / build-scan-report (push) Failing after 5m27s
Covers iom, oig, cli/{mail,prisma,zot}, mail/{cloudflare,postmark,
droplet,resend}, prisma/{vpn,screen,llm,project,export,eligibility,
extract,flow,ingest,tools}. Import + smoke tests with mocked deps.
Tracks #353.
23 lines
593 B
Python
23 lines
593 B
Python
"""Tests for bib.iom — CMS IOM crawler."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from bib.iom import ChapterEntry, IOMEntry, _short_manual_name
|
|
|
|
|
|
class TestShortManualName:
|
|
def test_callable(self):
|
|
assert callable(_short_manual_name)
|
|
|
|
|
|
class TestDataclasses:
|
|
def test_iom_entry(self):
|
|
e = IOMEntry(pub="100-01", title="Test", landing_url="http://x")
|
|
assert e.pub == "100-01"
|
|
|
|
def test_chapter_entry(self):
|
|
c = ChapterEntry(
|
|
pub="100-01", manual="Test", chapter="1", title="Ch1", url="http://x"
|
|
)
|
|
assert c.chapter == "1"
|