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