Skip to content

Commit

Permalink
Line too long errors...
Browse files Browse the repository at this point in the history
  • Loading branch information
GeigerJ2 committed Oct 31, 2024
1 parent 9995b60 commit d1a74cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/aiida/orm/nodes/data/code/installed.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ def validate_filepath_executable(self):
)

if not user_has_execute:
raise exceptions.ValidationError(
f'The executable at the remote absolute path `{self.filepath_executable}` exists, but might not actually be executable.'
execute_msg = (
f'The executable at the remote absolute path `{self.filepath_executable}` exists, '
'but might not actually be executable.'
)
raise exceptions.ValidationError(execute_msg)

def can_run_on_computer(self, computer: Computer) -> bool:
"""Return whether the code can run on a given computer.
Expand Down
3 changes: 2 additions & 1 deletion tests/orm/data/code/test_installed.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def test_validate_filepath_executable(ssh_key, computer, bash_path, tmp_path):
ValidationError,
match=r'The executable at the remote absolute path .* exists, but might not actually be executable\.',
):
# Didn't put this in the if-else and use transport.put, as we anyway only connect to localhost via SSH in this test
# Didn't put this in the if-else and use transport.put, as we anyway only connect to localhost via SSH in this
# test
dummy_code.validate_filepath_executable()

code.filepath_executable = str(bash_path.absolute())
Expand Down

0 comments on commit d1a74cb

Please sign in to comment.