Random anime character info #4553
Conversation
Click here to look at the relevant links
|
| URL = "https://www.mywaifulist.moe/random" | ||
|
|
||
|
|
||
| def save_image(image_url: str, image_title: str) -> None: |
algorithms-keeper
bot
Jul 18, 2021
As there is no test file in this pull request nor any test function or class in the file random_anime_character.py, please provide doctest for the function save_image
| file.write(image.content) | ||
|
|
||
|
|
||
| def random_anime_character() -> None: |
algorithms-keeper
bot
Jul 18, 2021
As there is no test file in this pull request nor any test function or class in the file random_anime_character.py, please provide doctest for the function random_anime_character
| URL = "https://www.mywaifulist.moe/random" | ||
|
|
||
|
|
||
| def save_image(image_url: str, image_title: str) -> None: |
algorithms-keeper
bot
Jul 18, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function save_image
| file.write(image.content) | ||
|
|
||
|
|
||
| def random_anime_character() -> None: |
algorithms-keeper
bot
Jul 18, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function random_anime_character
ashish-patwal
Jul 18, 2021
Author
Contributor
As this script produces a random string of characters and info , i cannot presume and assert any conditions for the test . Thus doctests were not included .
Click here to look at the relevant links
|
| URL = "https://www.mywaifulist.moe/random" | ||
|
|
||
|
|
||
| def save_image(image_url: str, image_title: str) -> None: |
algorithms-keeper
bot
Jul 18, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function save_image
| file.write(image.content) | ||
|
|
||
|
|
||
| def random_anime_character() -> None: |
algorithms-keeper
bot
Jul 18, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function random_anime_character
|
updates : black formatted the file as well as did pre-commit . |
|
Run |
Click here to look at the relevant links
|
| URL = "https://www.mywaifulist.moe/random" | ||
|
|
||
|
|
||
| def save_image(image_url: str, image_title: str) -> None: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function save_image
| return None | ||
|
|
||
|
|
||
| def random_anime_character() -> None: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function random_anime_character
|
I did all the tests and the script passed all of them . pre-commit , black formatting , flake8 . Can you please take one more look @cclauss . Doctests can't be created for this script therefore ommitted . |
|
Please fix type hints until mypy passes. |
Co-authored-by: Christian Clauss <cclauss@me.com>
Click here to look at the relevant links
|
| URL = "https://www.mywaifulist.moe/random" | ||
|
|
||
|
|
||
| def save_image(image_url: str, image_title: str) -> None: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function save_image
| return None | ||
|
|
||
|
|
||
| def random_anime_character() -> None: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function random_anime_character
Co-authored-by: Christian Clauss <cclauss@me.com>
Click here to look at the relevant links
|
| URL = "https://www.mywaifulist.moe/random" | ||
|
|
||
|
|
||
| def save_image(image_url: str, image_title: str) -> None: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function save_image
| return None | ||
|
|
||
|
|
||
| def random_anime_character() -> tuple[str, str, str]: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function random_anime_character
|
|
||
| return None |
cclauss
Jul 19, 2021
Member
| return None |
This can safely be deleted. We would only use return None on functions that could return other values.
Click here to look at the relevant links
|
| URL = "https://www.mywaifulist.moe/random" | ||
|
|
||
|
|
||
| def save_image(image_url: str, image_title: str) -> None: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function save_image
| file.write(image.content) | ||
|
|
||
|
|
||
| def random_anime_character() -> tuple[str, str, str]: |
algorithms-keeper
bot
Jul 19, 2021
As there is no test file in this pull request nor any test function or class in the file web_programming/random_anime_character.py, please provide doctest for the function random_anime_character
|
Looks good to me. Thanks for your persistence. Well done. |
Thank you as well . I learnt a lot . |
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.