Page MenuHomeSoftware Heritage

D7315.diff
No OneTemporary

D7315.diff

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

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

Event Timeline