|
|
@@ -262,7 +262,16 @@ class TestRegistration:
|
|
|
register(ctx)
|
|
|
hint = ctx.registered_kwargs["platform_hint"]
|
|
|
assert "MEDIA:/absolute/path/to/file" in hint
|
|
|
- assert "" in hint
|
|
|
+ assert "" in hint
|
|
|
+
|
|
|
+ def test_platform_hint_rules_out_markdown_for_local_files(self):
|
|
|
+ """gateway's extract_images only matches https?:// — markdown pointing at
|
|
|
+ a local file is never extracted and lands in the chat as literal text."""
|
|
|
+ ctx = _MockPluginContext()
|
|
|
+ register(ctx)
|
|
|
+ hint = ctx.registered_kwargs["platform_hint"]
|
|
|
+ assert "file:///path" in hint
|
|
|
+ assert "MEDIA:" in hint
|
|
|
|
|
|
def test_startup_logs_the_capabilities(self, caplog):
|
|
|
with caplog.at_level("INFO"):
|