Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fixed other tests broken due to changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoneiESS committed Aug 11, 2023
1 parent c124cf0 commit b7cd434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nexus_constructor/json/transformation_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _create_transformations(self, json_transformations: list):
depends_on = _find_attribute_from_list_or_dict(
CommonAttrs.DEPENDS_ON, attributes
)
if depends_on not in [".", ""]:
if depends_on not in [".", "", None]:
if depends_on[0] != "/":
depends_on = self.parent_component.absolute_path + "/transformations/" + depends_on

Expand Down
1 change: 1 addition & 0 deletions tests/json/test_transformation_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def attributes_list(transformation_json):
def transformation_reader(transformation_json):
parent_component = Mock(spec=Component)
parent_component.name = PARENT_COMPONENT_NAME
parent_component.absolute_path = "/entry/" + parent_component.name
entry = [transformation_json]
transforms_with_dependencies: Dict[
TransformId, Tuple[Transformation, TransformId]
Expand Down

0 comments on commit b7cd434

Please sign in to comment.