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

Function process

test/doc-examples/mzcompose.py:208–221  ·  view source on GitHub ↗
(file: pathlib.Path)

Source from the content-addressed store, hash-verified

206 )
207
208 def process(file: pathlib.Path) -> None:
209 snippet = td_snippet(file)
210 if not snippet:
211 return
212 print(f"--- {posixpath.relpath(file, LOCATION)}")
213 junit_report = ci_util.junit_report_filename(str(file).replace("/", "_"))
214 c.testdrive(
215 snippet,
216 silent=True,
217 args=[f"--junit-report={junit_report}"],
218 caller=f"{file}:1",
219 )
220 # Uploading successful junit files wastes time and contains no useful information
221 os.remove(MZ_ROOT / "test" / "doc-examples" / junit_report)
222
223 files_unsharded: list[pathlib.Path] = []
224 for file in args.files:

Callers

nothing calls this directly

Calls 4

td_snippetFunction · 0.85
replaceMethod · 0.45
testdriveMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected