-
Notifications
You must be signed in to change notification settings - Fork 11
Updating tests and modifications of errors to standardize their messages #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating tests and modifications of errors to standardize their messages #30
Conversation
.github/workflows/main.yml
Outdated
| - develop | ||
| pull_request: | ||
| branches: | ||
| - main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would do only on develop
| # Check existence | ||
| if not self._is_defined("_input_settings"): | ||
| raise TypeError("Please provide input parameters for Session: %s" %self._session_name) | ||
| # Check content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is removed because it is verified in _check_input_settings ?
| # Returned files (filtered information) | ||
| "outputs": [] if not infos["returnedFiles"] else [ | ||
| {"path": value} for value in infos["returnedFiles"]["output_file"] | ||
| {"path": value} for value in infos["returnedFiles"].values() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has already been corrected, but not exactly in the same way
Can you please merge develop and call me to manage the conflict ?
| input_settings = self._get_input_settings(location) | ||
| else: | ||
| raise AttributeError("Input settings are missing") | ||
| input_settings = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So input_setting is optional now ?
| f"Parameter '{name}' contains some invalid character(s): {', '.join(invalid)}" | ||
| ) | ||
| # If input is a File, check file(s) existence | ||
| invalid_chars.append((name, invalid)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to name it invalid_chars_inputs
| ) | ||
| if param["type"] == "Boolean": | ||
| if value not in ["true", "false"]: | ||
| wrong_types.append(name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename wrong_type_inputs
| # Case: VIP path | ||
| if str(input).startswith(self._SERVER_PATH_PREFIX): # PurePath.is_relative_to() is unavailable for Python <3.9 | ||
| if self._is_defined('_vip_input_dir'): | ||
| if str(input).startswith(self._SERVER_PATH_PREFIX) and len(str(input)) > 0: # PurePath.is_relative_to() is unavailable for Python <3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guesse input can be empy at this point ? it is not verified yet ?
|
Replaced by PR #31 |
No description provided.