elbroandrew / pytest_book_tdd

По книге 'Crafting test-driven software with python' by A.Molina.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Book: "Crafting test-driven software with python -- A.Molina"

  • If folders' structure looks like this:

working_dir/auth.py

working_dir/test_auth.py

Then run single test Win10 :

python <test file name>.py <test name> <another test name>

examples:

python test_auth.py TestAuthentication or

python test_auth.py TestAuthentication TestAuthorization

  • if folders' structure looks like this:

working_dir/auth_package/__init__.py

working_dir/auth_package/auth.py

working_dir/tests<directory>/test_auth.py

then run all tests from cmd win10:

python -m unittest tests/test_auth.py

About

По книге 'Crafting test-driven software with python' by A.Molina.


Languages

Language:Python 98.1%Language:Dockerfile 1.9%