MCPcopy
hub / github.com/Aider-AI/aider / test_detect_urls_disabled

Method test_detect_urls_disabled

tests/basic/test_coder.py:1024–1035  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1022 coder.commands.scraper.scrape.assert_called_once_with("https://example.com")
1023
1024 def test_detect_urls_disabled(self):
1025 with GitTemporaryDirectory():
1026 io = InputOutput(yes=True)
1027 coder = Coder.create(self.GPT35, "diff", io=io, detect_urls=False)
1028 coder.commands.scraper = MagicMock()
1029 coder.commands.scraper.scrape = MagicMock(return_value="some content")
1030
1031 # Test with a message containing a URL
1032 message = "Check out https://example.com"
1033 result = coder.check_for_urls(message)
1034 self.assertEqual(result, message)
1035 coder.commands.scraper.scrape.assert_not_called()
1036
1037 def test_unknown_edit_format_exception(self):
1038 # Test the exception message format

Callers

nothing calls this directly

Calls 4

InputOutputClass · 0.90
createMethod · 0.80
check_for_urlsMethod · 0.80

Tested by

no test coverage detected