rockandska
92a28e531b
use BATS_FILE_TMPDIR in test/plugin test
use global setup with bats with possibility to add specific test file _setup
use readlink in helper if realpath is not working as expected
10 meses atrás
James Stronz
47b0ce77c0
Re-allow paths in .python-version provided that they resolve to within the versions dir ( #2442 )
* Fixes #2430 while still preventing CVE-2022-35861
* Adds a skipped version message to stderr
Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
3 anos atrás
James Stronz
22fa683571
CVE-2022-35861: Fixed relative path traversal due to using version string in path ( #2412 )
4 anos atrás
Ville Skyttä
641916270b
feat: support (skip) commented lines in version-file
Sometimes it is convenient to be able to temporarily disable something
in a version-file. Because these files often aren't necessarily tracked
in a SCM, especially when working with virtualenvs, the SCM diffs won't
help with showing removed lines which are currently the only way to
disable something.
5 anos atrás
Yamashita Yuu
34065dddbb
reads only the first word from file
12 anos atrás
Yamashita Yuu
ea9214bb2e
ignores carriage returns
12 anos atrás
Vincent Robert
f205ec8359
Move carriage return test to version-file-read
12 anos atrás
Yamashita Yuu
319721b380
Modify applications and versions for Python
12 anos atrás
Yamashita Yuu
3dd9332eee
Fix broken tests
12 anos atrás
Yamashita Yuu
0965577b93
Import tests from rbenv with `sed -e s/rbenv/pyenv/g`
12 anos atrás
Mislav Marohnić
d2eace00c9
Add more tests for version-file-read
12 anos atrás
Mislav Marohnić
ab197ef51e
add tests for version commands
13 anos atrás