def test_histDF(self): from pyEX import histDF with patch("requests.get") as mock: mock.return_value = MagicMock() mock.return_value.status_code = 200 histDF()
def test_histDF(self): from datetime import datetime from pyEX import histDF with patch('requests.get') as mock: mock.return_value = MagicMock() mock.return_value.status_code = 200 mock.return_value.json = MagicMock(return_value=[]) histDF() histDF('201505') histDF(datetime.today())
def test_histDF(self): from pyEX import histDF histDF()
def test_histDF(self): from datetime import datetime from pyEX import histDF histDF() histDF('20170515') histDF(datetime.today())