# Copyright 2020 Alvaro Bartolome, alvarobartt @ GitHub
# See LICENSE for details.

import pytest

import covid_daily


def test_overview():
    params = [
        {
            'as_json': True
        },
        {
            'as_json': False
        }
    ]

    for param in params:
        covid_daily.overview(as_json=param['as_json'])


def test_data():
    data = covid_daily.data(
        country='france',
        chart='graph-deaths-daily',
        as_json=False
    )

    print(data.tail())


if __name__ == "__main__":
    test_overview()
    test_data()

[((24, 11, 28, 5), 'covid_daily.data', 'covid_daily.data', (), '', False, 'import covid_daily\n'), ((20, 8, 20, 54), 'covid_daily.overview', 'covid_daily.overview', (), '', False, 'import covid_daily\n')]