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

Method test_add_paper

tests/test_db_ops.py:102–109  ·  view source on GitHub ↗

Test adding a paper

(self, test_db_path, sample_paper)

Source from the content-addressed store, hash-verified

100 """Test adding a paper"""
101 import db_ops
102 db_ops.DB_PATH = test_db_path
103
104 result = add_paper(sample_paper)
105 assert result is not None
106 assert result > 0
107
108 def test_add_duplicate_paper(self, test_db_path, sample_paper):
109 """Test adding duplicate paper returns None"""
110 import db_ops
111 db_ops.DB_PATH = test_db_path
112

Callers

nothing calls this directly

Calls 1

add_paperFunction · 0.90

Tested by

no test coverage detected