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

Method test_update_profile

tests/test_db_ops.py:78–96  ·  view source on GitHub ↗

Test updating a profile

(self, test_db_path, sample_profile)

Source from the content-addressed store, hash-verified

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
96class TestPaperOperations:
97 """Tests for paper CRUD operations"""
98
99 def test_add_paper(self, test_db_path, sample_paper):

Callers

nothing calls this directly

Calls 3

create_profileFunction · 0.90
update_profileFunction · 0.90
get_profileFunction · 0.90

Tested by

no test coverage detected