Skip to content

Commit 1041f8b

Browse files
committed
Debug: dump manifest diff in test_manifest_is_current
1 parent cb67fe1 commit 1041f8b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

spacy/tests/test_cli_launcher.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ def test_manifest_is_current():
5252
[
5353
sys.executable,
5454
"-c",
55+
"import json; "
5556
"from spacy_cli.build_manifest import build_manifest; "
5657
"from spacy_cli.static import load_manifest; "
57-
"assert build_manifest() == load_manifest()",
58+
"b, l = build_manifest(), load_manifest(); "
59+
"diffs = {k: (str(b[k])[:80], str(l[k])[:80]) for k in b if b[k] != l[k]}; "
60+
"assert b == l, json.dumps(diffs, indent=2)",
5861
],
5962
capture_output=True,
6063
text=True,

0 commit comments

Comments
 (0)