from yahoo_historical import Fetcher


def test_get_historical():
    data = Fetcher("AAPL", [2007, 1, 1], [2017, 1, 1]).get_historical()
    assert len(data) > 0


def test_get_dividends():
    data = Fetcher("AAPL", [2007, 1, 1], [2017, 1, 1]).get_dividends()
    assert len(data) > 0


def test_get_splits():
    data = Fetcher("AAPL", [2007, 1, 1], [2017, 1, 1]).get_splits()
    assert len(data) > 0


def test_get_date_price():
    data = Fetcher("AAPL", [2007, 1, 1], [2017, 1, 1]).get_date_price()
    assert len(data) > 0


def test_get_date_volume():
    data = Fetcher("AAPL", [2007, 1, 1], [2017, 1, 1]).get_date_volume()
    assert len(data) > 0

Add basic unit tests for CI job
Add basic unit tests for CI job
