fix: allow threads and pinterest search sources

This commit is contained in:
Dinakar Sarbada
2026-05-06 12:38:03 -07:00
committed by Trevin Chow
parent 6b40d2c46f
commit 7bda02169d
2 changed files with 8 additions and 0 deletions
@@ -79,6 +79,8 @@ MOCK_AVAILABLE_SOURCES = [
"xiaohongshu",
"github",
"perplexity",
"threads",
"pinterest",
"xquik",
"digg",
]
+6
View File
@@ -71,6 +71,12 @@ class CliV3Tests(unittest.TestCase):
cli.parse_search_flag("web, reddit, hn, web"),
)
def test_parse_search_flag_accepts_optional_social_sources(self):
self.assertEqual(
["threads", "pinterest"],
cli.parse_search_flag("threads, pinterest"),
)
def test_parse_search_flag_rejects_invalid_or_empty_inputs(self):
with self.assertRaises(SystemExit):
cli.parse_search_flag("unknown")