def test_splitsDF(self): from pyEX import splitsDF with patch('requests.get') as mock: mock.return_value = MagicMock() mock.return_value.status_code = 200 mock.return_value.json = MagicMock(return_value=[]) splitsDF('test')
def test_splitsDF(self): from pyEX import splitsDF with patch('requests.get') as mock, \ patch('pickle.dump'): mock.return_value = MagicMock() mock.return_value.status_code = 200 mock.return_value.json = MagicMock(return_value=[]) splitsDF(SYMBOL, '5y')
def test_splitsDF(self): from pyEX import splitsDF with patch("requests.get") as mock, patch("pickle.dump"): mock.return_value = MagicMock() mock.return_value.status_code = 200 splitsDF() splitsDF(SYMBOL) splitsDF(SYMBOL, "test")
def test_splitsDF(self): from pyEX import splitsDF splitsDF(SYMBOL, '5y')
def test_splitsDF(self): from pyEX import splitsDF splitsDF(C)