MCPcopy Index your code
hub / github.com/pyodide/pyodide / test_calculate_diff

Function test_calculate_diff

tools/tests/test_create_lockfile_diff.py:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def test_calculate_diff():
9 old = Path(__file__).parent / "testdata" / "pyodide-lock-0.27.7.json"
10 new = Path(__file__).parent / "testdata" / "pyodide-lock-0.28.0a3.json"
11
12 added, removed, changed = calculate_diff(old, new)
13 assert "platformdirs" in [pkg.name for pkg in added]
14 assert "sharedlib-test-py" in [pkg.name for pkg in removed]
15 assert "numpy" in [pkg.name for pkg in changed]

Callers

nothing calls this directly

Calls 1

calculate_diffFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…