MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / test_main

Function test_main

samples/compute/create_instance_test.py:26–35  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

24
25@pytest.mark.flaky(max_runs=3, min_passes=1)
26def test_main(capsys):
27 instance_name = "test-instance-{}".format(uuid.uuid4())
28 main(PROJECT, BUCKET, "us-central1-f", instance_name, wait=False)
29
30 out, _ = capsys.readouterr()
31
32 assert "Instances in project" in out
33 assert "zone us-central1-f" in out
34 assert instance_name in out
35 assert "Deleting instance" in out

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…