Aan de slagGa gratis aan de slag

Data preparation

In this exercise you will create a fixture and finish test functions. Here, you have a simple data pipeline and some tests to check the data it returns. Since the tests goal is to check that the data is correct, it would be convenient to implement the pipeline as a fixture.

Deze oefening maakt deel uit van de cursus

Introduction to Testing in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Import the pytest library
____
Code bewerken en uitvoeren