Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ahdra Merali <[email protected]>
  • Loading branch information
Ahdra Merali committed Jan 24, 2024
1 parent 6c69a36 commit d1bb8e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kedro/ipython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ def _prepare_node_inputs(node: Node) -> str:
for node_input, func_param in zip(node_inputs, func_params):
statements.append(f'{func_param} = catalog.load("{node_input}")')

statements = "\n".join(statements)
return statements
input_statements = "\n".join(statements)
return input_statements


def _prepare_function_body(func: Callable) -> str:
Expand Down
4 changes: 2 additions & 2 deletions tests/ipython/test_ipython.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,13 @@ def test_prepare_function_body(self):
result = _prepare_function_body(dummy_function)
assert result == func_strings

@pytest.mark.skip(reason="Not support yet")
@pytest.mark.skip(reason="Not supported yet")
def test_get_lambda_function_body(self):
result = _prepare_function_body(lambda x: x)
assert result == "lambda x: x"
# TODO fix - fails because it splits at the comma

@pytest.mark.skip(reason="Not support yet")
@pytest.mark.skip(reason="Not supported yet")
def test_get_nested_function_body(self):
func_strings = [
"def nested_function(input):",
Expand Down

0 comments on commit d1bb8e1

Please sign in to comment.