Skip to content
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

Update unix.py #324

Closed
wants to merge 1 commit into from
Closed

Conversation

havocesp
Copy link

@havocesp havocesp commented Nov 9, 2024

Fixed _get_user_dirs_folder function at unix.py file to expand both $HOME and ${HOME} variables.

Fixed "_get_user_dirs_folder" function at unix.py file to expand both "$HOME" and "${HOME}"  variables.
Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding test to a pull request is mandatory.

@havocesp
Copy link
Author

Adding test to a pull request is mandatory.

Sorry I don't know how to write a test for that simple change. I have never use neither Mock nor pytest just doctest. Moreover I think that the change avoid a possible error due to the use of brackets in bash variables like $HOME.

Regards.

@gaborbernat
Copy link
Member

I can't accept the change without tests, no matter how simple. Regards.

@gaborbernat gaborbernat marked this pull request as draft November 11, 2024 17:47
@gaborbernat
Copy link
Member

Closing as seems it's stalled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants