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

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

Focus on this Bite hiding sidebars, turn on Focus Mode.
We use Python 3.8