@pytest.mark.output_capturing
def test_post_to_okapi(mock_okapi_success, mock_okapi_variable, mock_dag_run, mock_records, caplog):
    post_to_okapi(token='2345asdf', dag_run=mock_dag_run(), records=mock_records, endpoint='/instance-storage/batch/synchronous', payload_key='instances')
    assert ('Result status code 201 for 2 records' in caplog.text)
@pytest.mark.output_capturing
def test_post_to_okapi(mock_okapi_success, mock_okapi_variable, mock_dag_run, mock_records, caplog):
    post_to_okapi(token='2345asdf', dag_run=mock_dag_run(), records=mock_records, endpoint='/instance-storage/batch/synchronous', payload_key='instances')
    assert ('Result status code 201 for 2 records' in caplog.text)