MulaiMulai sekarang secara 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.

Latihan ini adalah bagian dari kursus

Introduction to Testing in Python

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga