check: the pumping refusal only when libredesk/ carries conversations/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-18 15:28:17 +01:00
1 parent adc5ae12bd
commit f58db178c7
1 file changed
+1
+1
View File
@@ -406,6 +406,7 @@ def check_conversations():
assert "img-src 'self'" in server.conversation_transcript("42").headers["content-security-policy"] assert "img-src 'self'" in server.conversation_transcript("42").headers["content-security-policy"]
refuses(conversations.transcript, "../analyses", False) refuses(conversations.transcript, "../analyses", False)
refuses(server.conversation_file, "42", "../../etc/passwd") refuses(server.conversation_file, "42", "../../etc/passwd")
if conversations.pompage: # ~/aimsight-libredesk may be on a branch without conversations/ yet
assert "From and To" in refuses(conversations.pump, {"start": "2026-11-01"}) assert "From and To" in refuses(conversations.pump, {"start": "2026-11-01"})
assert set(conversations.pump_state()) == {"running", "log"} assert set(conversations.pump_state()) == {"running", "log"}
pompage, conversations.pompage = conversations.pompage, None # no libredesk/ link: the app still runs pompage, conversations.pompage = conversations.pompage, None # no libredesk/ link: the app still runs