From e39cdb95b058f75b1c11099eb7b81890d56f6745 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 22 Jul 2021 13:48:16 +0000 Subject: [PATCH] feat: add Samples section to CONTRIBUTING.rst (#181) Source-Link: https://github.com/googleapis/synthtool/commit/52e4e46eff2a0b70e3ff5506a02929d089d077d4 Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:6186535cbdbf6b9fe61f00294929221d060634dae4a0795c1cefdbc995b2d605 --- bigquery-datatransfer/snippets/manage_transfer_configs.py | 4 +--- bigquery-datatransfer/snippets/run_notification_test.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bigquery-datatransfer/snippets/manage_transfer_configs.py b/bigquery-datatransfer/snippets/manage_transfer_configs.py index 6b4abd7814e0..5f775f100bc2 100644 --- a/bigquery-datatransfer/snippets/manage_transfer_configs.py +++ b/bigquery-datatransfer/snippets/manage_transfer_configs.py @@ -135,9 +135,7 @@ def schedule_backfill(override_values={}): ) response = transfer_client.schedule_transfer_runs( - parent=transfer_config_name, - start_time=start_time, - end_time=end_time, + parent=transfer_config_name, start_time=start_time, end_time=end_time, ) print("Started transfer runs:") diff --git a/bigquery-datatransfer/snippets/run_notification_test.py b/bigquery-datatransfer/snippets/run_notification_test.py index 02f24266cdf6..4c41e6890fe5 100644 --- a/bigquery-datatransfer/snippets/run_notification_test.py +++ b/bigquery-datatransfer/snippets/run_notification_test.py @@ -17,8 +17,7 @@ def test_run_notification(capsys, transfer_config_name, pubsub_topic): run_notification.run_notification( - transfer_config_name=transfer_config_name, - pubsub_topic=pubsub_topic, + transfer_config_name=transfer_config_name, pubsub_topic=pubsub_topic, ) out, _ = capsys.readouterr() assert "Updated config:" in out