Everything tested using python pytest

Siddharth Goyal (~sid22)


0

Votes

Description:

Pytest provides a wide range of flexibility out of the box. This has to led it's wide spread adoption in a variety of Python language projects. However, Pytest is still under-rated in it's ability to test a much wider range of workflows. The modular design of Pytest coupled with flexible nature and superb library support of Python language makes this an ideal candidate to not just test Python code but also write agnostic end to end tests. Agonstic end to end tests imply that we can test complex workflows like say login, call a series of APIs, asset results and check for overall result.

Overview

In this talk we will go over from basic introduction to Pytest framework all the way to writing an end to test of an API written independently of Python. The idea is to introduce core concepts of Pytest and provide a framework on how to architect their own tests. The talk will flow with the objective of having a running example of an end to end test.

I will go over

  • PyTest introduction
  • Core concepts, fixtures, markers, scoping etc.
  • Setting up a basic test
  • Running the tests
  • Leveraging python and pytest to write agnostic end to end tests
  • Take a sample API and write an end to end test for it.
  • Closing thoughts and next steps.

The talk will be split into sections each adding onto each other as runnable examples.

Prerequisites:

Basic python understanding is enough. A basic understanding of testing and general programming concepts is enough. Experienced people will be able to appreciate nuances around structuring of test and the final end to end test and it's benefits.

Content URLs:

Speaker Info:

Siddharth is an experienced engineer currently working at Rubrik Inc. He has been working with Python for over 10 years now, completed OWASP internship in Python/Django in college and since then has used Python in a wide range of applications. He has developed a lot of tooling internally to leverage Pytest and python as a means of improving dev productivity and testing complex workflows.

Outside of work he pursues his passion for Astronomy and overall python libraries centered around astronomy,

Speaker Links:

Section: Core Python
Type: Workshops
Target Audience: Intermediate
Last Updated: