-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unit tests using Pytest for action_inputs.py. #43
Unit tests using Pytest for action_inputs.py. #43
Conversation
…lint settings updated with not checking test files.
…and-Code-Coverage' into feature/34-Introduce-Unit-Tests-and-Code-Coverage
Release Notes:
|
…Action-Inputs' into feature/34-Introduce-Unit-Tests-Action-Inputs
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.
- pulled
- unit tests run
- code review
- local run performed
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.
- pulled
- code review
- run tests
- run local script
@@ -125,10 +125,15 @@ def validate_inputs(out_path: str) -> None: | |||
# Check that the INPUT_OUTPUT_PATH is not a project directory | |||
# Note: That would cause a rewriting project files | |||
project_directories = get_all_project_directories() | |||
if DEFAULT_OUTPUT_PATH in project_directories: | |||
project_directories.remove(DEFAULT_OUTPUT_PATH) | |||
default_abspath_output_path = os.path.abspath(DEFAULT_OUTPUT_PATH) |
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.
Why do you here work with constant value instead of user's input?
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 worked with constant default, because the file can be created without user knowing. I still think, it should be kept there. So first option is to check as well if there is already an user's input OR you mentioned few weeks ago, that there is no point to remove these files at all, since it will be run only once on the GH everytime.
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.
After the discussion, the change is fixed in commit: af039ef.
Implement unit tests using pytest for action inputs file.
Release Notes: