Remove some dead code and unify param names around not sending for actual real life messages vs. historical decrypt

This commit is contained in:
Jack Kingsman
2026-03-06 14:11:23 -08:00
parent 9d03844371
commit d7d06ec1f8
4 changed files with 13 additions and 16 deletions
+3 -3
View File
@@ -1852,8 +1852,8 @@ class TestRunHistoricalDmDecryption:
assert len(messages) == 0
@pytest.mark.asyncio
async def test_sets_trigger_bot_false(self, test_db, captured_broadcasts):
"""Historical decryption calls create_dm_message_from_decrypted with trigger_bot=False."""
async def test_sets_realtime_false(self, test_db, captured_broadcasts):
"""Historical decryption calls create_dm_message_from_decrypted with realtime=False."""
from app.packet_processor import run_historical_dm_decryption
raw = self._make_text_message_bytes(b"\x20")
@@ -1891,7 +1891,7 @@ class TestRunHistoricalDmDecryption:
mock_create.assert_awaited_once()
call_kwargs = mock_create.call_args[1]
assert call_kwargs["trigger_bot"] is False
assert call_kwargs["realtime"] is False
@pytest.mark.asyncio
async def test_broadcasts_success_when_decrypted(self, test_db, captured_broadcasts):