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

Method test_add_duplicate_paper

tests/test_db_ops.py:111–121  ·  view source on GitHub ↗

Test adding duplicate paper returns None

(self, test_db_path, sample_paper)

Source from the content-addressed store, hash-verified

109 """Test adding duplicate paper returns None"""
110 import db_ops
111 db_ops.DB_PATH = test_db_path
112
113 # Add first paper
114 add_paper(sample_paper)
115
116 # Try to add duplicate
117 result = add_paper(sample_paper)
118 assert result is None
119
120 def test_get_paper_by_arxiv(self, test_db_path, sample_paper):
121 """Test retrieving paper by arxiv_id"""
122 import db_ops
123 db_ops.DB_PATH = test_db_path
124

Callers

nothing calls this directly

Calls 1

add_paperFunction · 0.90

Tested by

no test coverage detected