Ejemplo n.º 1
0
 def test_get_record_count_raises_when_not_set(self):
     r = RESTQuery()
     with pytest.raises(QueryNotExecuted) as e:
         r.get_response_record_count()
     assert "No query has been executed. Use the Execute Query keyword to retrieve records." in str(
         e)
Ejemplo n.º 2
0
 def test_get_response_record_count_when_set(self):
     r = RESTQuery()
     r.record_count = 10
     assert r.record_count == r.get_response_record_count()