Skip to content

Commit 52c4b26

Browse files
Jon Wayne Parrottdpebot
Jon Wayne Parrott
authored andcommitted
* Remove cloud config fixture * Fix client secrets * Fix bigtable instance
1 parent bf532d4 commit 52c4b26

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

samples/hello_happybase/main_test.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@
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_happybase-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
main(
27-
cloud_config.project,
28-
cloud_config.bigtable_instance,
30+
PROJECT,
31+
BIGTABLE_CLUSTER,
2932
table_name)
3033

3134
out, _ = capsys.readouterr()

0 commit comments

Comments
 (0)