Python Pytest Guide
What is Pytest?
Pytest is a Python testing framework.
Installing Pytest
Use pip install pytest.
Writing Tests
Test functions start with test_.
Assertions
assert checks expected results.
Fixtures
Reusable setup code for tests.
Parametrization
Run same tests with multiple data values.
Markers
Group and filter tests.
Practice
Create calculator and API test projects.