Esempio n. 1
0
 def test_points(self):
     from pyEX import points
     with patch('requests.get') as mock:
         mock.return_value = MagicMock()
         mock.return_value.status_code = 200
         points()
         points('aapl')
         points('aapl', 'test')
Esempio n. 2
0
    def test_points(self):
        from pyEX import points

        with patch("requests.get") as mock:
            mock.return_value = MagicMock()
            mock.return_value.status_code = 200
            points()
            points("aapl")
            points("aapl", "test")