BaşlayınÜcretsiz Başlayın

Feature and performance tests

In this exercise, you will continue to test the pandas data pipeline. Here, you will create two types of tests. A feature test with pytest to validate that the feature "finding a median salary for a 2022 year" actually works. And a performance test with pytest-benchmark to find out how fast the process is with pytest-benchmark. Note: The function name testreadingspeed() in the solution is used to benchmark the performance. This is consistent with the naming convention and functionality.

Bu egzersiz

Introduction to Testing in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün

Egzersizi başlat