Skip to content
Snippets Groups Projects
Verified Commit c30e4851 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

deposit.loader: Avoid unnecessary metadata json transformation

This reverts a small part of 777ea446 which introduced by mistake that
conversion into json.
parent 0c766379
No related branches found
No related tags found
1 merge request!407deposit.loader: Avoid unnecessary metadata json transformation
......@@ -71,7 +71,7 @@ class DepositPackageInfo(BasePackageInfo):
raw_info = {
"origin": metadata["origin"],
"origin_metadata": {
"metadata": json.dumps(metadata["metadata_dict"]),
"metadata": metadata["metadata_dict"],
"provider": metadata["provider"],
"tool": metadata["tool"],
},
......
......@@ -301,7 +301,7 @@ def test_deposit_loading_ok_2(swh_config, requests_mock_datadir):
"raw": {
"origin": {"type": "deposit", "url": url,},
"origin_metadata": {
"metadata": json.dumps(raw_meta["metadata_dict"]),
"metadata": raw_meta["metadata_dict"],
"provider": provider,
"tool": tool,
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment