Test updating a profile
(self, test_db_path, sample_profile)
| 76 | """Test updating a profile""" |
| 77 | import db_ops |
| 78 | db_ops.DB_PATH = test_db_path |
| 79 | |
| 80 | # Create profile |
| 81 | create_profile(sample_profile["user_id"], sample_profile) |
| 82 | |
| 83 | # Update profile |
| 84 | updated = sample_profile.copy() |
| 85 | updated["version"] = "0.2" |
| 86 | updated["core_directions"]["new_topic"] = 0.5 |
| 87 | |
| 88 | result = update_profile(sample_profile["user_id"], updated) |
| 89 | assert result is True |
| 90 | |
| 91 | # Verify update |
| 92 | retrieved = get_profile(sample_profile["user_id"]) |
| 93 | assert retrieved["version"] == "0.2" |
| 94 | |
| 95 | |
| 96 | class TestPaperOperations: |
| 97 | """Tests for paper CRUD operations""" |
| 98 | |
| 99 | def test_add_paper(self, test_db_path, sample_paper): |
nothing calls this directly
no test coverage detected