Skip to content

Commit

Permalink
python: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Jul 5, 2024
1 parent 86f3f4f commit 016370f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/python/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ EOF
popd

assert_success
[[ "$output" == *"3.6.15"* ]]
[[ "$output" == *"3.9.15"* ]]
}

@test "change python version to closest version" {
Expand All @@ -257,14 +257,14 @@ EOF
assert_success
[[ "$output" == *"3.10.11"* ]]

export PYTHON_VERSION=3.11
export PYTHON_VERSION=3.10
run /var/lib/tsuru/deploy
assert_success
[[ "$output" == *"Using already installed python version: 3.11.3"* ]]
[[ "$output" == *"Using already installed python version: 3.10.11"* ]]
run python --version

assert_success
[[ "$output" == *"3.11.3"* ]]
[[ "$output" == *"3.10.11"* ]]

export PYTHON_VERSION=3
run /var/lib/tsuru/deploy
Expand Down Expand Up @@ -334,7 +334,7 @@ EOF

@test "can install uwsgi with python 3" {
echo "3.10" > ${CURRENT_DIR}/.python-version
echo "uwsgi==2.0.18" > ${CURRENT_DIR}/requirements.txt
echo "uwsgi==2.0.26" > ${CURRENT_DIR}/requirements.txt

run /var/lib/tsuru/deploy
assert_success
Expand Down

0 comments on commit 016370f

Please sign in to comment.