Skip to content

Testing with pytest

Photo of Tibs
Hosted By
Tibs
Testing with pytest

Details

This will be the fourth meeting of 2022. It's another virtual meeting, starting at 19:00 (7pm) on Tuesday 3rd May.

Alexandre Faget will be leading a session on testing with pytest:

The purpose of this session will be to provide a short introduction to test python projects and (some aspects) of the Test Driven Development methodology (TDD).

As part of this session, we will:
- Discuss the motivations for testing,
- Discuss the challenges of applying TDD,
- Introduce pytest and some helper libraries (e.g. test fixtures, responses, time-machine),
- See them in action through live examples,
- Hands-on exercise: Adding a new functionality to the existing program and its related tests.

Audience: beginner to intermediate levels

For participating to the workshop:
- An editor or IDE (Pycharm, VSCode, etc.)
- Know how to set-up a virtual environment.

You can clone the repository at https://framagit.org/alfajet/python-tests to get the demo source code (the slides may change until the session).

***

The meeting will be at https://meet.jit.si/TestingWithPythons

Although I've "started" the meeting, I shall only start paying attention between 18:30 - 18:45 (6:30 - 6:45pm), and the meeting itself won't start until 19:00 (7pm), with the normal introductory comments.

You should find that you start with both your sound and video off. As always, feel free not to share video if you prefer not to.

There's no fixed time for stopping - we'll see how it goes.

Remember that everything we do must follow our code of conduct - see https://github.com/campug/organisational/blob/master/CodeOfConduct.rst Basically, be considerate to each other.

And lastly, feel free to join our slack group (https://join.slack.com/t/campug/shared_invite/enQtMzM2NjcwMzM2ODM2LTQyMmQ5MmVlZGMxMzBhOGQ0MTQ1ZGMyMTkzYjc1MWQzM2M2ZDViZDc5NDEyYmViY2QyNWJlMjg2ZTkwNzc3NjM) for general discussion before and after the meeting.

Photo of Cambridge Python User Group (CamPUG) group
Cambridge Python User Group (CamPUG)
See more events