Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f0cf8f

Browse files
Jon Wayne Parrottdpebot
authored andcommitted
* Remove cloud config fixture * Fix client secrets * Fix bigtable instance
1 parent 29f4ee4 commit 7f0cf8f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

samples/hello/main_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import os
1516
import random
1617

1718
from main import main
1819

20+
PROJECT = os.environ['GCLOUD_PROJECT']
21+
BIGTABLE_CLUSTER = os.environ['BIGTABLE_CLUSTER']
1922
TABLE_NAME_FORMAT = 'hello-bigtable-system-tests-{}'
2023
TABLE_NAME_RANGE = 10000
2124

2225

23-
def test_main(cloud_config, capsys):
26+
def test_main(capsys):
2427
table_name = TABLE_NAME_FORMAT.format(
2528
random.randrange(TABLE_NAME_RANGE))
2629

27-
main(
28-
cloud_config.project,
29-
cloud_config.bigtable_instance,
30-
table_name)
30+
main(PROJECT, BIGTABLE_CLUSTER, table_name)
3131

3232
out, _ = capsys.readouterr()
3333
assert 'Creating the {} table.'.format(table_name) in out

0 commit comments

Comments
 (0)