MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / test_get_paper_by_arxiv

Method test_get_paper_by_arxiv

tests/test_db_ops.py:123–134  ·  view source on GitHub ↗

Test retrieving paper by arxiv_id

(self, test_db_path, sample_paper)

Source from the content-addressed store, hash-verified

121 """Test retrieving paper by arxiv_id"""
122 import db_ops
123 db_ops.DB_PATH = test_db_path
124
125 # Add paper
126 add_paper(sample_paper)
127
128 # Retrieve by arxiv_id
129 result = get_paper_by_arxiv(sample_paper["arxiv_id"])
130 assert result is not None
131 assert result["arxiv_id"] == sample_paper["arxiv_id"]
132
133
134class TestBehaviorLogOperations:
135 """Tests for behavior log operations"""
136
137 def test_log_behavior(self, test_db_path):

Callers

nothing calls this directly

Calls 2

add_paperFunction · 0.90
get_paper_by_arxivFunction · 0.90

Tested by

no test coverage detected