MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / test_log_behavior

Method test_log_behavior

tests/test_db_ops.py:140–154  ·  view source on GitHub ↗

Test logging user behavior

(self, test_db_path)

Source from the content-addressed store, hash-verified

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"""

Callers

nothing calls this directly

Calls 1

log_behaviorFunction · 0.90

Tested by

no test coverage detected