mirror of
1
0
Fork 0
dotbot/tests
Anish Athalye 416f32f5fe Fix globbing when there is a single match
See https://github.com/anishathalye/dotbot/issues/282 and
https://github.com/anishathalye/dotbot/issues/315.

This patch simplifies the implementation, removing special-case handling
for the cases of zero matches and one match. Instead, any situation
where `glob: true` is specified and the path contains a glob character
(any of "?", "*", or "[") is treated as a glob case. The reason we check
both `use_glob` and `_has_glob_chars()` is to more gracefully handle the
case where the user has enabled globs by default, but most links do not
contain glob characters and should not be treated as globs.
2023-07-09 16:24:13 -04:00
..
conftest.py Account for MacOS and Windows temp directory issues 2022-05-18 06:37:48 -05:00
dotbot_plugin_directory.py Add isort as a tox environment, and run it 2022-05-13 10:44:29 -05:00
dotbot_plugin_file.py Add isort as a tox environment, and run it 2022-05-13 10:44:29 -05:00
test_bin_dotbot.py Migrate the bin/dotbot script test to Python 2022-05-13 10:44:29 -05:00
test_clean.py Enforce platform-specific CPython version requirements for Windows in tox 2022-05-13 10:44:29 -05:00
test_cli.py Add black as tox environment, and run it 2022-05-13 10:44:29 -05:00
test_config.py Migrate config-* tests to Python 2022-05-13 10:44:29 -05:00
test_create.py Add black as tox environment, and run it 2022-05-13 10:44:29 -05:00
test_link.py Fix globbing when there is a single match 2023-07-09 16:24:13 -04:00
test_noop.py Add a test framework for all supported Python versions 2022-05-13 10:44:29 -05:00
test_shell.py Resolve merge conflicts 2022-12-16 13:52:33 -06:00
test_shim.py Resolve merge conflicts 2022-12-16 13:52:33 -06:00