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