MCPcopy Create free account
hub / github.com/astral-sh/python-build-standalone / upload_release_distributions

Function upload_release_distributions

src/github_api_tester.py:297–323  ·  view source on GitHub ↗
(tmp_path_factory)

Source from the content-addressed store, hash-verified

295
296@pytest.fixture(scope="session")
297def upload_release_distributions(tmp_path_factory):
298 dist = tmp_path_factory.mktemp("dist")
299 filename = dist / FILENAME
300 filename.touch()
301 os.truncate(filename, 20_000_000)
302
303 async def upload_release_distributions(*args):
304 return await trio.run_process(
305 [
306 "cargo",
307 "run",
308 "--",
309 "upload-release-distributions",
310 "--github-uri",
311 "http://localhost:5000",
312 "--token",
313 "no-token-needed",
314 "--dist",
315 dist,
316 "--datetime",
317 "19700101T1234",
318 "--ignore-missing",
319 ]
320 + list(args)
321 )
322
323 return upload_release_distributions
324
325
326# TODO: test all of [r.tag_name for r in releases]

Callers 1

test_uploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected