mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 14:53:53 -05:00
Changed versioning scheme; 0.4.0-20140602 -> 20140602
This commit is contained in:
@@ -16,7 +16,7 @@ git_commit() {
|
||||
assert [ ! -e "$PYENV_ROOT" ]
|
||||
run pyenv---version
|
||||
assert_success
|
||||
[[ $output == "pyenv 0."* ]]
|
||||
[[ $output == "pyenv 20"* ]]
|
||||
}
|
||||
|
||||
@test "reads version from git repo" {
|
||||
@@ -24,14 +24,14 @@ git_commit() {
|
||||
cd "$PYENV_ROOT"
|
||||
git init
|
||||
git_commit
|
||||
git tag v0.4.1
|
||||
git tag v20380119
|
||||
git_commit
|
||||
git_commit
|
||||
|
||||
cd "$PYENV_TEST_DIR"
|
||||
run pyenv---version
|
||||
assert_success
|
||||
[[ $output == "pyenv 0.4.1-2-g"* ]]
|
||||
[[ $output == "pyenv 20380119-2-g"* ]]
|
||||
}
|
||||
|
||||
@test "prints default version if no tags in git repo" {
|
||||
@@ -42,5 +42,5 @@ git_commit() {
|
||||
|
||||
cd "$PYENV_TEST_DIR"
|
||||
run pyenv---version
|
||||
[[ $output == "pyenv 0."* ]]
|
||||
[[ $output == "pyenv 20"* ]]
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ load test_helper
|
||||
@test "blank invocation" {
|
||||
run pyenv
|
||||
assert_success
|
||||
assert [ "${lines[0]}" == "pyenv 0.4.0-20140602" ]
|
||||
assert [ "${lines[0]}" == "pyenv 20140602" ]
|
||||
}
|
||||
|
||||
@test "invalid command" {
|
||||
|
||||
Reference in New Issue
Block a user