def test_one_phase_show_without_analyse(self, jhu_data, population_data): population = population_data.value("Italy") trend = Trend(jhu_data, population, "Italy", start_date="25Mar2020", end_date="02Apr2020") with pytest.raises(NameError): trend.show()
def test_one_phase(self, jhu_data, population_data, country, func): population = population_data.value(country) sr_df = jhu_data.to_sr(country=country, population=population, start_date="25Mar2020", end_date="02Apr2020") trend = Trend(sr_df) assert isinstance(trend.rmsle(), float) trend.show(area=jhu_data.area_name(country="Italy"))
def test_one_phase(self, jhu_data, population_data): population = population_data.value("Italy") trend = Trend(jhu_data, population, "Italy", start_date="25Mar2020", end_date="02Apr2020") trend.analyse() assert isinstance(trend.rmsle(), float) trend.show()
def test_one_phase(self, jhu_data, population_data): population = population_data.value("Italy") sr_df = jhu_data.to_sr(country="Italy", population=population, start_date="25Mar2020", end_date="02Apr2020") trend = Trend(sr_df) trend.run() assert isinstance(trend.rmsle(), float) warnings.simplefilter("ignore", category=UserWarning) trend.show(area=jhu_data.area_name(country="Italy"))
def test_one_phase_with_dataframe(self, jhu_data, population_data): population = population_data.value("Italy") clean_df = jhu_data.cleaned() warnings.filterwarnings("ignore", category=DeprecationWarning) trend = Trend(clean_df, population, "Italy", start_date="25Mar2020", end_date="02Apr2020") trend.analyse() assert isinstance(trend.rmsle(), float) trend.show()