Test adding a paper
(self, test_db_path, sample_paper)
| 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 |
nothing calls this directly
no test coverage detected