From 7f0cf8f2d9203a0ae22ccef5cb4d1c7ad7c27dcc Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Tue, 4 Apr 2017 16:08:30 -0700 Subject: [PATCH] Remove cloud config fixture [(#887)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/887) * Remove cloud config fixture * Fix client secrets * Fix bigtable instance --- samples/hello/main_test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/hello/main_test.py b/samples/hello/main_test.py index c0968dd67..4080d7ee2 100644 --- a/samples/hello/main_test.py +++ b/samples/hello/main_test.py @@ -12,22 +12,22 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os import random from main import main +PROJECT = os.environ['GCLOUD_PROJECT'] +BIGTABLE_CLUSTER = os.environ['BIGTABLE_CLUSTER'] TABLE_NAME_FORMAT = 'hello-bigtable-system-tests-{}' TABLE_NAME_RANGE = 10000 -def test_main(cloud_config, capsys): +def test_main(capsys): table_name = TABLE_NAME_FORMAT.format( random.randrange(TABLE_NAME_RANGE)) - main( - cloud_config.project, - cloud_config.bigtable_instance, - table_name) + main(PROJECT, BIGTABLE_CLUSTER, table_name) out, _ = capsys.readouterr() assert 'Creating the {} table.'.format(table_name) in out