Update referral points pricing

This commit is contained in:
2569718930@qq.com
2026-05-30 18:04:36 +08:00
parent c0b20ed1bf
commit 90bc895000
32 changed files with 940 additions and 224 deletions
+3 -4
View File
@@ -27,7 +27,7 @@ def _message(chat_id: int | str, text: str = "有效发言"):
)
def test_group_message_points_include_configured_forum_chat(monkeypatch):
def test_group_message_points_disabled_by_default(monkeypatch):
monkeypatch.delenv("POLYWEATHER_BOT_POINTS_CHAT_IDS", raising=False)
monkeypatch.delenv("POLYWEATHER_BOT_POINTS_CHAT_ID", raising=False)
monkeypatch.setenv("TELEGRAM_CHAT_IDS", "-1003965137823")
@@ -37,9 +37,8 @@ def test_group_message_points_include_configured_forum_chat(monkeypatch):
io_layer.track_group_text_activity(_message(-1003965137823))
assert db.upserts == [(123, "alice")]
assert len(db.activities) == 1
assert db.activities[0]["telegram_id"] == 123
assert db.upserts == []
assert db.activities == []
def test_group_message_points_skip_unconfigured_chat_when_allowlist_exists(monkeypatch):