Skip to content

Commit b72e52f

Browse files
author
Andrei Neagu
committed
renmed properly
1 parent a8a996c commit b72e52f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

services/web/server/tests/integration/test_exporter.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
# store only lowercase "v1", "v2", etc...
6464
SUPPORTED_EXPORTER_VERSIONS = {"v1"}
6565

66-
REVERSE_REMAPPING_KEY = "__reverse__remapping__dict__key__"
66+
REMAPPING_KEY = "__reverse__remapping__dict__key__"
6767
KEYS_TO_IGNORE_FROM_COMPARISON = {
6868
"id",
6969
"uuid",
7070
"creation_date",
7171
"last_change_date",
72-
REVERSE_REMAPPING_KEY,
72+
REMAPPING_KEY,
7373
}
7474

7575

@@ -277,9 +277,7 @@ def replace_uuids_with_sequences(original_project: Dict[str, Any]) -> Dict[str,
277277
project["workbench"] = json.loads(str_workbench)
278278
project["ui"] = json.loads(str_ui)
279279
# store for later usage
280-
project[
281-
REVERSE_REMAPPING_KEY
282-
] = remapping_dict # {v: k for k, v in remapping_dict.items()}
280+
project[REMAPPING_KEY] = remapping_dict
283281

284282
return project
285283

@@ -307,7 +305,7 @@ def extract_original_files_for_node_sequence(
307305
returns mapped to the normalized data node keys for simpler comparison
308306
"""
309307
results = {}
310-
reverse_search_dict = normalized_project[REVERSE_REMAPPING_KEY]
308+
reverse_search_dict = normalized_project[REMAPPING_KEY]
311309

312310
for uuid_key, node in project["workbench"].items():
313311
output_1 = node["outputs"]["output_1"]

0 commit comments

Comments
 (0)