- Choose the new character and first test it's output using
cowsay.draw()
method# https://www.asciiart.eu/animals >>> scorpion = r""" \ \ \ ___ ___ ( _< >_ ) // \\ \\___..___// `-( )-' _|__|_ /_|__|_\ /_|__|_\ /_\__/_\ \ || / _) || ( ) \\___// `---' """ >>> lorem: str = ( 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam' 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,' 'sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.' ) >>> cowsay.draw(lorem, scorpion) _________________________________________________ / \ | Lorem ipsum dolor sit amet, consetetur sadipscing | | elitr, sed diamnonumy eirmod tempor invidunt ut | | labore et dolore magna aliquyam erat,sed diam vol | | uptua. At vero eos et accusam et justo duo dolore | | s et ea rebum. | \ / ================================================= \ \ \ ___ ___ ( _< >_ ) // \\ \\___..___// `-( )-' _|__|_ /_|__|_\ /_|__|_\ /_\__/_\ \ || / _) || ( ) \\___// `---'
- Fork the repo here https://github.com/VaasuDevanS/cowsay-python/fork
- Once the character and it's output are finalized, add the character in
cowsay/characters.py
and it's expected solution incowsay/tests/solutions.py
- Add the character name in
test_char_names
function incowsay/tests/test_api.py
- Update
README.md
(More Characters
section) - Run the test suite locally using
pytest
- Create a
Pull Request
Feel free to create a pull request to make any desired changes to the code without breaking the API :-)
Feel free to create a pull request if you want to add more functionality (like customizations to each characters, ...)