Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124530
D7315.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
767 B
Subscribers
None
D7315.diff
View Options
diff --git a/swh/deposit/tests/api/test_checks.py b/swh/deposit/tests/api/test_checks.py
--- a/swh/deposit/tests/api/test_checks.py
+++ b/swh/deposit/tests/api/test_checks.py
@@ -6,6 +6,7 @@
# disable flake8 on this file because of line length
# flake8: noqa
+import pprint
import re
import textwrap
from typing import Any, Dict
@@ -243,7 +244,7 @@
)
def test_api_checks_check_metadata_ok(metadata_ok, swh_checks_deposit):
actual_check, detail = check_metadata(ElementTree.fromstring(metadata_ok))
- assert actual_check is True, f"Unexpected result: {detail}"
+ assert actual_check is True, f"Unexpected result:\n{pprint.pformat(detail)}"
if "swh:deposit" in metadata_ok:
# no missing suggested field
assert detail is None
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 1:01 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216010
Attached To
D7315: test_checks: Make failure more readable
Event Timeline
Log In to Comment