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

Method test_get_profile

tests/test_db_ops.py:56–68  ·  view source on GitHub ↗

Test retrieving a profile

(self, test_db_path, sample_profile)

Source from the content-addressed store, hash-verified

54 assert result is None
55
56 def test_get_profile(self, test_db_path, sample_profile):
57 """Test retrieving a profile"""
58 import db_ops
59 db_ops.DB_PATH = test_db_path
60
61 # Create profile
62 create_profile(sample_profile["user_id"], sample_profile)
63
64 # Retrieve profile
65 result = get_profile(sample_profile["user_id"])
66 assert result is not None
67 assert result["user_id"] == sample_profile["user_id"]
68 assert result["version"] == sample_profile["version"]
69
70 def test_get_nonexistent_profile(self, test_db_path):
71 """Test retrieving nonexistent profile returns None"""

Callers

nothing calls this directly

Calls 2

create_profileFunction · 0.90
get_profileFunction · 0.90

Tested by

no test coverage detected