fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script
- Remove unused type:ignore comment in scholars.py - Fix 51 mypy errors across test files (Any return types, cast(), protocol stubs) - Fix arxiv unit test failures caused by session isolation (patch_session_factory fixture) - Fix integration test rate-limit bleed between search and create - Add scripts/premerge.sh for local CI verification - Add docs/website/.docusaurus/ to .gitignore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
49cf7034b2
commit
87aa89b58c
17 changed files with 129 additions and 28 deletions
|
|
@ -111,8 +111,9 @@ class TestBuildFingerprint:
|
|||
assert all(c in "0123456789abcdef" for c in fp)
|
||||
|
||||
def test_deterministic(self) -> None:
|
||||
kwargs = {"title": "Test Title", "year": 2024, "author_text": "Smith", "venue_text": "ICML"}
|
||||
assert _build_fingerprint(**kwargs) == _build_fingerprint(**kwargs)
|
||||
fp_a = _build_fingerprint(title="Test Title", year=2024, author_text="Smith", venue_text="ICML")
|
||||
fp_b = _build_fingerprint(title="Test Title", year=2024, author_text="Smith", venue_text="ICML")
|
||||
assert fp_a == fp_b
|
||||
|
||||
def test_different_titles_produce_different_fingerprints(self) -> None:
|
||||
fp1 = _build_fingerprint(title="Title A", year=2024, author_text=None, venue_text=None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue