fix: honor explicit perplexity source requests

This commit is contained in:
Dinakar Sarbada
2026-05-06 12:40:02 -07:00
committed by Trevin Chow
parent 6a5a122195
commit 5b29b8f427
2 changed files with 10 additions and 1 deletions
+7
View File
@@ -84,6 +84,13 @@ class CliV3Tests(unittest.TestCase):
)
self.assertIn("threads", available)
def test_explicit_perplexity_search_uses_openrouter_key_without_include_sources(self):
available = cli.pipeline.available_sources(
{"OPENROUTER_API_KEY": "test-key", "INCLUDE_SOURCES": ""},
requested_sources=["perplexity"],
)
self.assertIn("perplexity", available)
def test_parse_search_flag_rejects_invalid_or_empty_inputs(self):
with self.assertRaises(SystemExit):
cli.parse_search_flag("unknown")