示例#1
0
    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()
示例#2
0
 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()
示例#4
0
 def test_histDF(self):
     from datetime import datetime
     from pyEX import histDF
     histDF()
     histDF('20170515')
     histDF(datetime.today())