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

Callers

nothing calls this directly

Calls 2

create_profileFunction · 0.90
get_profileFunction · 0.90

Tested by

no test coverage detected