Beispiel #1
0
 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')
Beispiel #2
0
    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')
Beispiel #3
0
    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")
Beispiel #4
0
 def test_splitsDF(self):
     from pyEX import splitsDF
     splitsDF(SYMBOL, '5y')
Beispiel #5
0
 def test_splitsDF(self):
     from pyEX import splitsDF
     splitsDF(C)