From d1a74cbb135c749bc064517f446aae2f86c03842 Mon Sep 17 00:00:00 2001 From: Julian Geiger Date: Thu, 31 Oct 2024 18:25:41 +0100 Subject: [PATCH] Line too long errors... --- src/aiida/orm/nodes/data/code/installed.py | 6 ++++-- tests/orm/data/code/test_installed.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/aiida/orm/nodes/data/code/installed.py b/src/aiida/orm/nodes/data/code/installed.py index f418da0550..31191377f9 100644 --- a/src/aiida/orm/nodes/data/code/installed.py +++ b/src/aiida/orm/nodes/data/code/installed.py @@ -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. diff --git a/tests/orm/data/code/test_installed.py b/tests/orm/data/code/test_installed.py index 6140ee65cc..275d7432ac 100644 --- a/tests/orm/data/code/test_installed.py +++ b/tests/orm/data/code/test_installed.py @@ -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())