File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ import os
15
16
import random
16
17
17
18
from main import main
18
19
20
+ PROJECT = os .environ ['GCLOUD_PROJECT' ]
21
+ BIGTABLE_CLUSTER = os .environ ['BIGTABLE_CLUSTER' ]
19
22
TABLE_NAME_FORMAT = 'hello-bigtable-system-tests-{}'
20
23
TABLE_NAME_RANGE = 10000
21
24
22
25
23
- def test_main (cloud_config , capsys ):
26
+ def test_main (capsys ):
24
27
table_name = TABLE_NAME_FORMAT .format (
25
28
random .randrange (TABLE_NAME_RANGE ))
26
29
27
- main (
28
- cloud_config .project ,
29
- cloud_config .bigtable_instance ,
30
- table_name )
30
+ main (PROJECT , BIGTABLE_CLUSTER , table_name )
31
31
32
32
out , _ = capsys .readouterr ()
33
33
assert 'Creating the {} table.' .format (table_name ) in out
You can’t perform that action at this time.
0 commit comments