def test_run_query_with_dml_query(mock_bigquery_client, mock_query_job):
    """
    Don't attempt to download results from a DML query / query with no results.

    https://github.com/googleapis/python-bigquery-pandas/issues/481
    """
    connector = _make_connector()
    type(mock_query_job).destination = mock.PropertyMock(return_value=None)
    connector.run_query("UPDATE tablename SET value = '';")
    mock_bigquery_client.list_rows.assert_not_called()

    Don't attempt to download results from a DML query / query with no results.

    https://github.com/googleapis/python-bigquery-pandas/issues/481
    
tests/unit/test_gbq.py