Esempio 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
Esempio 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
Esempio n. 3
0
 def test_heartbeat(self):
     o = Ordering()
     assert o.heartbeat() == True
Esempio n. 4
0
 def test_heartbeat(self):
     o = Ordering()
     assert o.heartbeat() == True