An hour long Python Knowledge Share session on "Intro to testing with pytest" delivered to Gigaclear QA and devs on May 2nd 2024.
The example code includes a connexion 3 - Flask 3 web app we'll be testing (with Pipfile for pipenv), and eight tests files of examples we'll work through.
This knowledge share is an introduction to testing with pytest including some principles of automated testing.
Topics covered include:
virtual environments and pipenv (installing pytest)
pytest command line for collecting and running tests
Simple test functions and asserts
Test fixtures and conftest.py
Testing exceptions
Test parameterisation for test combinations
Test marking for running test subsets
Principles of testing (unit tests versus end to end testing, building test helpers etc)
mocking and patching
Slides and example code here: https://github.com/voidspace/talks
На этой странице сайта вы можете посмотреть видео онлайн Python Knowledge Share: Introduction to testing with pytest длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Michael Foord 02 Май 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 105 раз и оно понравилось 3 зрителям. Приятного просмотра!