adding new extract command to extract selector or main content as markdown, updateing version as 0.5.0
This commit is contained in:
@@ -182,6 +182,21 @@ class TestSearch:
|
||||
assert mock_send.call_args[0][1]["background"] is True
|
||||
|
||||
|
||||
class TestExtract:
|
||||
def test_extract_markdown_default(self, b, mock_send):
|
||||
mock_send.return_value = "# Title"
|
||||
|
||||
result = b.extract_markdown()
|
||||
|
||||
assert result == "# Title"
|
||||
mock_send.assert_called_once_with("extract.markdown", {"selector": None}, profile=None)
|
||||
|
||||
def test_extract_markdown_selector(self, b, mock_send):
|
||||
b.extract_markdown("article")
|
||||
|
||||
mock_send.assert_called_once_with("extract.markdown", {"selector": "article"}, profile=None)
|
||||
|
||||
|
||||
# ── Tabs ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
class TestTabs:
|
||||
|
||||
Reference in New Issue
Block a user