Hi Abhinav, Pytest is a testing framework which eases the web application testing. It allows you to create simple, yet scalable test cases in Selenium Webdriver. Pytest is used with Selenium Webdriver as it fulfils all the requirements of a test automation framework like Unit Tests, Functional Test, Acceptance Tests etc.
Pytest also supports functionalities like Log Events, Test Report Generation etc which can be of great importance while creating test cases in Webdriver. It can be used for writing test cases for simple as well as highly complex scenarios and its really easy to learn Pytest for testers who are well versed with the Python and other test frameworks based on Python.