Skip to content

Commit 63846f2

Browse files
authored
Merge pull request #401 from ansforge/fix/converter/cisu-distribution-id-on-rs-sr-conversion
fix(converter) : Corrige la source du distributionID en conversion RS-SR
2 parents 1bff09f + 7abe655 commit 63846f2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

converter/converter/cisu/resources_status/resources_status_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def from_rs_to_cisu(
5454
rs_sr_edxl_list = [pm.payload for pm in persisted_rs_sr]
5555
rs_sr_edxl_list.append(edxl_json)
5656

57-
output_json = ResourcesInfoCISUConverter.copy_rs_input_content(rs_ri)
57+
output_json = cls.copy_rs_input_content(edxl_json)
5858

5959
enriched = enrich_rs_ri_with_rs_srs(
6060
rs_ri_edxl=rs_ri,

converter/tests/cisu/test_resources_status_converter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def test_from_rs_to_cisu_real_data():
5151
assert result is not None
5252
assert result != []
5353

54+
assert result["distributionID"] == rs_sr_new["distributionID"]
55+
5456
resources = get_cisu_resources(result)
5557

5658
assert len(resources) == 2

0 commit comments

Comments
 (0)