issues with HN

This commit is contained in:
Akash Mahanty 2022-02-08 21:28:25 +05:30 committed by GitHub
parent ca4f79a2e3
commit 81162eebd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ def test_save() -> None:
runner = CliRunner()
result = runner.invoke(
main,
"--url https://news.ycombinator.com --user_agent my-unique-user-agent \
"--url https://yahoo.com --user_agent my-unique-user-agent \
--save --headers".split(
" "
),
@ -116,7 +116,7 @@ def test_save() -> None:
result.output.find("Cached save:\nFalse") != -1
)
assert result.output.find("Save API headers:\n") != -1
assert result.output.find("://news.ycombinator.com") != -1
assert result.output.find("yahoo.com") != -1
def test_version() -> None: