-
Notifications
You must be signed in to change notification settings - Fork 403
fix(cd): Complete from . on empty CDPATH entry (#1527) #1529
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
Conversation
|
For some reason |
test/t/test_cd.py
Outdated
| assert completion == ["foo1", "foo2"] | ||
|
|
||
| @pytest.mark.complete( | ||
| "cd ", cwd="shared/empty_dir", env=dict(CDPATH=":../default") |
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.
With this, we're testing we no longer complete anything from / which is good. I think it would be even better if we'd cwd somewhere that has subdirs, in order to test that we actually do offer completions from that dir due to the empty entry?
|
Good point, I switched them around. I don't see any other directories in shared with subdirectories, so it's now only testing completion from the empty CDPATH entry and not the second entry. I'm happy to change the second CDPATH entry to another directory with subdirectories, if someone can suggest an appropriate directory to depend on for this test. Rebased with the fix for test_cdable_vars |
|
I think we can use for example |
|
Updated |
scop
left a comment
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.
Thanks!
Fixes #1527 (edit by akinomyoga)