IniziaInizia gratis

Energy pipeline

You will work with the dataset that contains data about energy production by different countries. This pipeline groups the data by COUNTRY summing over VALUE, and then gets COUNTRY with the minimum VALUE. This time you will implement a unit test to make sure that the dataset does not contain nulls before getting the country with a minimum VALUE. And a feature test to make sure that the final result is str.

Use the unittest framework.

Questo esercizio fa parte del corso

Introduction to Testing in Python

Visualizza il corso

Esercizio pratico interattivo

Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi

Inizia esercizio