MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / _require_env

Function _require_env

test/gcp/mzcompose.py:66–73  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

64
65
66def _require_env(name: str) -> str:
67 value = os.environ.get(name)
68 if not value:
69 raise RuntimeError(
70 f"{name} is not set. This test requires real GCP credentials; "
71 "see the docstring at the top of mzcompose.py."
72 )
73 return value
74
75
76def _read_gcs_avro(gs_url: str, token: str, project: str) -> list[Any]:

Callers 1

workflow_defaultFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected