avatar Bite 358. Implementation of a Simple Typer Test


Note this is a Test Bite and uses Python 3.7 and MutPy 0.6.1

In this Bite, you will create a simple Typer test to check whether a Typer application behaves as expected.

Check out the script.py and write a reasonable test. Hence, test whether the command works and whether the help is shown as expected.

Check out the Typer documentation about tests for more information.

Enjoy!

PS: We test your test implementation using mut.py. Because if __name__ == "__main__" confuses the mutation testing, we removed it from the script.py.

 

Login and get coding
go back Intermediate level
Bitecoin 3X

16 out of 16 users completed this Bite.
Will you be Pythonista #17 to crack this Bite?
Resolution time: ~26 min. (avg. submissions of 5-240 min.)

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help