We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf532d4 commit 52c4b26Copy full SHA for 52c4b26
samples/hello_happybase/main_test.py
@@ -12,20 +12,23 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import os
16
import random
17
18
from main import main
19
20
+PROJECT = os.environ['GCLOUD_PROJECT']
21
+BIGTABLE_CLUSTER = os.environ['BIGTABLE_CLUSTER']
22
TABLE_NAME_FORMAT = 'hello_happybase-system-tests-{}'
23
TABLE_NAME_RANGE = 10000
24
25
-def test_main(cloud_config, capsys):
26
+def test_main(capsys):
27
table_name = TABLE_NAME_FORMAT.format(
28
random.randrange(TABLE_NAME_RANGE))
29
main(
- cloud_config.project,
- cloud_config.bigtable_instance,
30
+ PROJECT,
31
+ BIGTABLE_CLUSTER,
32
table_name)
33
34
out, _ = capsys.readouterr()
0 commit comments