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

Callers

nothing calls this directly

Calls 1

log_behaviorFunction · 0.90

Tested by

no test coverage detected