Test logging user behavior
(self, test_db_path)
| 138 | """Test logging user behavior""" |
| 139 | import db_ops |
| 140 | db_ops.DB_PATH = test_db_path |
| 141 | |
| 142 | result = log_behavior( |
| 143 | user_id="test_user", |
| 144 | push_id="push_001", |
| 145 | paper_id=1, |
| 146 | action="selected", |
| 147 | action_type="selected", |
| 148 | category="🔴" |
| 149 | ) |
| 150 | assert result is not None |
| 151 | assert result > 0 |
| 152 | |
| 153 | def test_get_behavior_logs(self, test_db_path): |
| 154 | """Test retrieving behavior logs""" |
| 155 | import db_ops |
| 156 | db_ops.DB_PATH = test_db_path |
| 157 |
nothing calls this directly
no test coverage detected