MCPcopy
hub / github.com/pyodide/pyodide / test_pr_index

Function test_pr_index

tools/tests/test_backport.py:164–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163
164def test_pr_index():
165 changelog = Changelog.from_text(TEST_CHANGELOG)
166 unreleased = changelog.unreleased
167 unreleased.create_pr_index()
168 assert unreleased.pr_index == {
169 5343: PrChangelogIndex(0, 0, 0, False),
170 5350: PrChangelogIndex(0, 0, 0, False),
171 5374: PrChangelogIndex(1, 1, 0, True),
172 5388: PrChangelogIndex(0, 0, 1, True),
173 5432: PrChangelogIndex(1, 0, 1, True),
174 5434: PrChangelogIndex(0, 1, 0, True),
175 5436: PrChangelogIndex(1, 0, 0, True),
176 5445: PrChangelogIndex(0, 1, 1, True),
177 }
178
179
180def test_add_backported_entries():

Callers

nothing calls this directly

Calls 2

from_textMethod · 0.80
create_pr_indexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…