Exemplo n.º 1
0
 def test_heartbeat_failure(self):
     # mock requests.get so that we get a result for which response.json() will throw an exception
     with patch('gbdxtools.ordering.requests.get', return_value = False) as mock_within:
         o = Ordering()
         assert o.heartbeat() == False
Exemplo n.º 2
0
 def test_heartbeat_failure(self):
     # mock requests.get so that we get a result for which response.json() will throw an exception
     with patch('gbdxtools.ordering.requests.get',
                return_value=False) as mock_within:
         o = Ordering()
         assert o.heartbeat() == False
Exemplo n.º 3
0
 def test_heartbeat(self):
     o = Ordering()
     assert o.heartbeat() == True
Exemplo n.º 4
0
 def test_heartbeat(self):
     o = Ordering()
     assert o.heartbeat() == True