← Về thư mục
scripts/test_ars_mark_read.py
- _write_passport · function · L33-L41 — def _write_passport(path: Path, *, citation_keys: list[str]) -> None
- _read_log · function · L44-L47 — def _read_log(passport_path: Path) -> dict
- TestMarkReadHappyPath · class · L50-L104 — class TestMarkReadHappyPath(unittest.TestCase)
- test_first_time_write_creates_file_with_schema_header · method · L51-L67 — def test_first_time_write_creates_file_with_schema_header(self) -> None
- test_batch_form_appends_multiple_entries · method · L69-L84 — def test_batch_form_appends_multiple_entries(self) -> None
- test_append_only_preserves_existing_entries · method · L86-L104 — def test_append_only_preserves_existing_entries(self) -> None
- TestMarkReadFailFast · class · L107-L184 — class TestMarkReadFailFast(unittest.TestCase)
- test_no_active_passport_fails · method · L110-L118 — def test_no_active_passport_fails(self) -> None
- test_passport_not_found_fails · method · L120-L131 — def test_passport_not_found_fails(self) -> None
- test_passport_parent_unreadable_fails · method · L133-L159 — def test_passport_parent_unreadable_fails(self) -> None
- test_readlog_unwritable_fails · method · L161-L184 — def test_readlog_unwritable_fails(self) -> None
- TestMarkReadCitationKeyValidation · class · L187-L239 — class TestMarkReadCitationKeyValidation(unittest.TestCase)
- test_invalid_citation_key_hard_errors · method · L188-L211 — def test_invalid_citation_key_hard_errors(self) -> None
- test_batch_with_one_invalid_key_rejects_whole_batch · method · L213-L239 — def test_batch_with_one_invalid_key_rejects_whole_batch(self) -> None
- TestUnmarkRead · class · L242-L281 — class TestUnmarkRead(unittest.TestCase)
- test_unmark_writes_rescinded_at · method · L243-L263 — def test_unmark_writes_rescinded_at(self) -> None
- test_unmark_unknown_key_hard_errors · method · L265-L281 — def test_unmark_unknown_key_hard_errors(self) -> None
- TestMarkReadYAMLPassport · class · L284-L323 — class TestMarkReadYAMLPassport(unittest.TestCase)
- test_yaml_passport_happy_path · method · L290-L307 — def test_yaml_passport_happy_path(self) -> None
- test_yaml_passport_invalid_citation_key_hard_errors · method · L309-L323 — def test_yaml_passport_invalid_citation_key_hard_errors(self) -> None
- TestReadLogUnwritableExistingFile · class · L326-L353 — class TestReadLogUnwritableExistingFile(unittest.TestCase)
- test_existing_unwritable_log_file_fails_fast · method · L331-L353 — def test_existing_unwritable_log_file_fails_fast(self) -> None