Test creating a new profile
(self, test_db_path, sample_profile)
| 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""" |
nothing calls this directly
no test coverage detected