def test_days_dict_zero_key_has_values(): """Test that posts on day of scrape are listed as zero.""" jd = JobData('test') days = jd.count_days() assert jd.time_dict['0'] != 0
def test_count_days_method_returns_dict(): """Test the count days method returns a dictionary.""" jd = JobData('test') assert isinstance(jd.count_days(), dict)
def test_count_days_dict_property_is_updated(): """Test the count days method updates the time dict property.""" jd = JobData('test') days = jd.count_days() assert jd.time_dict == days
def test_chart_days_returns_list(): """Test the chart days function returns list.""" jd = JobData('test') jd.count_days() assert isinstance(jd.chart_days(), list)