Skip to content

Commit

Permalink
style: flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorres committed Dec 12, 2021
1 parent a49ea3f commit 980b104
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gutenberg2kindle/gutenberg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

import requests

GUTENBERG_BOOK_BASE_URL: Final[str] = "https://www.gutenberg.org/ebooks/{book_id}.kindle"
GUTENBERG_BOOK_BASE_URL: Final[str] = (
"https://www.gutenberg.org/ebooks/{book_id}.kindle"
)


def download_book(book_id: int) -> Optional[BytesIO]:
Expand Down
9 changes: 8 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ def test_main_config_handlers(
# get-config with name
monkeypatch.setattr(cli, "get_config", lambda _: "test-value")
with patch.object(
sys, "argv", ["gutenberg2kindle", "get-config", "--name", "smtp_server"]
sys,
"argv",
[
"gutenberg2kindle",
"get-config",
"--name",
"smtp_server",
],
):
cli.main()
out, _ = capfd.readouterr()
Expand Down

0 comments on commit 980b104

Please # to comment.