MCPcopy Create free account
hub / github.com/apache/tvm / test_docs_comment

Function test_docs_comment

tests/python/ci/test_ci.py:334–363  ·  view source on GitHub ↗

Test that a comment with a link to the docs is successfully left on PRs

(target_url, base_url, commit_sha, expected_body)

Source from the content-addressed store, hash-verified

332 )
333)
334def test_docs_comment(target_url, base_url, commit_sha, expected_body):
335 """
336 Test that a comment with a link to the docs is successfully left on PRs
337 """
338 pr_data = {
339 "commits": {
340 "nodes": [
341 {
342 "commit": {
343 "oid": commit_sha,
344 "statusCheckRollup": {
345 "contexts": {
346 "nodes": [
347 {
348 "context": "tvm-ci/pr-head",
349 "targetUrl": target_url,
350 }
351 ]
352 }
353 },
354 }
355 }
356 ]
357 }
358 }
359 comment = scripts.github.github_docs_comment.get_doc_url(
360 pr=pr_data,
361 base_docs_url=base_url,
362 )
363 assert_in(expected_body, comment)
364
365
366@tvm.testing.skip_if_wheel_test

Callers

nothing calls this directly

Calls 1

assert_inFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…