
Install PyCharm community edition on Windows 10, download from JetBrains, run the installer, and set up the IDE; then create a new Python project, write hello world, and run it.
Demonstrates parameterizing tests with pytest.mark.parametrize to test a function with numbers, strings, and floats, reducing duplication and validating expected results.
py.test is an alternative, more Pythonic way of writing your tests.
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
pytest is a mature full-featured Python testing tool that helps you write better programs. Learn Pytest basic functionality, Setup & Tear Down, Fixtures.
Beginning with a brief introduction and setup of Pytest. We will see How to install pytest, Using Options with Pytest, Parameterizing tests (pytest.mark.parametrize), pytest fixtures + setup/teardown methods, Using PyCharm to run pytest tests.
The best part is, the overhead for creating unit tests is close to zero!
Take this course now online Python course and master your skill!
ENROLL NOW