Skip to content

Commit

Permalink
chore: move samples into snippets dir
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Aug 4, 2020
1 parent 8fe7254 commit 6f3f1f9
Show file tree
Hide file tree
Showing 154 changed files with 80 additions and 81 deletions.
1 change: 0 additions & 1 deletion docs/samples

This file was deleted.

Empty file removed samples/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import add_empty_column
import add_empty_column


def test_add_empty_column(capsys, table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import browse_table_data
import browse_table_data


def test_browse_table_data(capsys, table_with_data_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_list_jobs
from .. import create_job
import client_list_jobs
import create_job


def test_client_list_jobs(capsys, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_load_partitioned_table
import client_load_partitioned_table


def test_client_load_partitioned_table(capsys, random_table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query
import client_query


def test_client_query(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from google.cloud import bigquery

from .. import client_query_add_column
import client_query_add_column


def test_client_query_add_column(capsys, random_table_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_batch
import client_query_batch


def test_client_query_batch(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_destination_table
import client_query_destination_table


def test_client_query_destination_table(capsys, table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_destination_table_cmek
import client_query_destination_table_cmek


def test_client_query_destination_table_cmek(capsys, random_table_id, kms_key_name):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_destination_table_legacy
import client_query_destination_table_legacy


def test_client_query_destination_table_legacy(capsys, random_table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_dry_run
import client_query_dry_run


def test_client_query_dry_run(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import re

from .. import client_query_legacy_sql
import client_query_legacy_sql


def test_client_query_legacy_sql(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from google.cloud import bigquery

from .. import client_query_relax_column
import client_query_relax_column


def test_client_query_relax_column(capsys, random_table_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_w_array_params
import client_query_w_array_params


def test_client_query_w_array_params(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_w_named_params
import client_query_w_named_params


def test_client_query_w_named_params(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_w_positional_params
import client_query_w_positional_params


def test_client_query_w_positional_params(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_w_struct_params
import client_query_w_struct_params


def test_client_query_w_struct_params(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import client_query_w_timestamp_params
import client_query_w_timestamp_params


def test_client_query_w_timestamp_params(capsys,):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import copy_table
import copy_table


def test_copy_table(capsys, table_with_data_id, random_table_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import copy_table_cmek
import copy_table_cmek


def test_copy_table_cmek(capsys, random_table_id, table_with_data_id, kms_key_name):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import six
from google.cloud import bigquery

from .. import copy_table_multiple_source
import copy_table_multiple_source


def test_copy_table_multiple_source(capsys, random_table_id, random_dataset_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import create_dataset
import create_dataset


def test_create_dataset(capsys, random_dataset_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import create_job
import create_job


def test_create_job(capsys, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import create_table
import create_table


def test_create_table(capsys, random_table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import create_table_range_partitioned
import create_table_range_partitioned


def test_create_table_range_partitioned(capsys, random_table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from google.cloud import bigquery

from .. import dataset_exists
import dataset_exists


def test_dataset_exists(capsys, random_dataset_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import delete_dataset_labels
from .. import get_dataset_labels
from .. import label_dataset
import delete_dataset_labels
import get_dataset_labels
import label_dataset


def test_dataset_label_samples(capsys, dataset_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import delete_dataset
import delete_dataset


def test_delete_dataset(capsys, dataset_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import delete_table
import delete_table


def test_delete_table(capsys, table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import logging

from .. import download_public_data
import download_public_data


def test_download_public_data(caplog, capsys):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import logging

from .. import download_public_data_sandbox
import download_public_data_sandbox


def test_download_public_data_sandbox(caplog, capsys):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import get_dataset
import get_dataset


def test_get_dataset(capsys, dataset_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from google.cloud import bigquery

from .. import get_table
import get_table


def test_get_table(capsys, random_table_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import list_datasets
import list_datasets


def test_list_datasets(capsys, dataset_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import list_datasets_by_label
import list_datasets_by_label


def test_list_datasets_by_label(capsys, dataset_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import list_tables
import list_tables


def test_list_tables(capsys, dataset_id, table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import pytest

from .. import load_table_dataframe
import load_table_dataframe


pandas = pytest.importorskip("pandas")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from google.cloud import bigquery

from .. import load_table_file
import load_table_file


def test_load_table_file(capsys, random_table_id, client):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import load_table_uri_autodetect_csv
import load_table_uri_autodetect_csv


def test_load_table_uri_autodetect_csv(capsys, random_table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import load_table_uri_autodetect_json
import load_table_uri_autodetect_json


def test_load_table_uri_autodetect_csv(capsys, random_table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import load_table_uri_avro
import load_table_uri_avro


def test_load_table_uri_avro(capsys, random_table_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import load_table_uri_cmek
import load_table_uri_cmek


def test_load_table_uri_cmek(capsys, random_table_id, kms_key_name):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import load_table_uri_csv
import load_table_uri_csv


def test_load_table_uri_csv(capsys, random_table_id):
Expand Down
Loading

0 comments on commit 6f3f1f9

Please sign in to comment.