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 """Test creating a new profile"""
30 # Override DB_PATH
31 import db_ops
32 db_ops.DB_PATH = test_db_path
33
34 result = create_profile(
35 sample_profile["user_id"],
36 sample_profile
37 )
38 assert result is not None
39 assert result > 0
40
41 def test_create_duplicate_profile(self, test_db_path, sample_profile):
42 """Test creating duplicate profile returns None"""
43 import db_ops
44 db_ops.DB_PATH = test_db_path
45

Callers

nothing calls this directly

Calls 1

create_profileFunction · 0.90

Tested by

no test coverage detected