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

Method test_create_profile

tests/test_db_ops.py:31–42  ·  view source on GitHub ↗

Test creating a new profile

(self, test_db_path, sample_profile)

Source from the content-addressed store, hash-verified

29 """Tests for profile CRUD operations"""
30
31 def test_create_profile(self, test_db_path, sample_profile):
32 """Test creating a new profile"""
33 # Override DB_PATH
34 import db_ops
35 db_ops.DB_PATH = test_db_path
36
37 result = create_profile(
38 sample_profile["user_id"],
39 sample_profile
40 )
41 assert result is not None
42 assert result > 0
43
44 def test_create_duplicate_profile(self, test_db_path, sample_profile):
45 """Test creating duplicate profile returns None"""

Callers

nothing calls this directly

Calls 1

create_profileFunction · 0.90

Tested by

no test coverage detected