Beispiel #1
0
 def test_upcomingEventsDF(self):
     from pyEX import upcomingEventsDF, upcomingEarningsDF, upcomingDividendsDF, upcomingSplitsDF, upcomingIPOsDF
     with patch('requests.get') as mock, \
          patch('pickle.dump'):
         mock.return_value = MagicMock()
         mock.return_value.status_code = 200
         upcomingEventsDF()
         upcomingEarningsDF()
         upcomingDividendsDF()
         upcomingSplitsDF()
         upcomingIPOsDF()
         upcomingEventsDF(SYMBOL)
         upcomingEarningsDF(SYMBOL)
         upcomingDividendsDF(SYMBOL)
         upcomingSplitsDF(SYMBOL)
         upcomingIPOsDF(SYMBOL)
Beispiel #2
0
    def test_upcomingEventsDF(self):
        from pyEX import (
            upcomingDividendsDF,
            upcomingEarningsDF,
            upcomingEventsDF,
            upcomingIPOsDF,
            upcomingSplitsDF,
        )

        with patch("requests.get") as mock:
            mock.return_value = MagicMock()
            mock.return_value.status_code = 200
            upcomingEventsDF()
            upcomingEarningsDF()
            upcomingDividendsDF()
            upcomingSplitsDF()
            upcomingIPOsDF()
            upcomingEventsDF(SYMBOL)
            upcomingEarningsDF(SYMBOL)
            upcomingDividendsDF(SYMBOL)
            upcomingSplitsDF(SYMBOL)
            upcomingIPOsDF(SYMBOL)