Login and get coding
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 thescript.py
.
17 out of 17 users completed this Bite.
Will you be the 18th person to crack this Bite?
Resolution time: ~26 min. (avg. submissions of 5-240 min.)