Skip to content

Commit b6b7714

Browse files
committed
fix tests
1 parent 6587cc8 commit b6b7714

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/test.bats

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ health_checks() {
4343
assert_success
4444
assert_output "Python 2.7.18"
4545

46+
run ddev exec python2 --version
47+
assert_success
48+
assert_output "Python 2.7.18"
49+
4650
run ddev exec python2.7 --version
4751
assert_success
4852
assert_output "Python 2.7.18"
@@ -51,11 +55,19 @@ health_checks() {
5155
assert_success
5256
assert_output "pip 20.0.2 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)"
5357

54-
run python -c "import hashlib; print('MD5:', hashlib.md5('test').hexdigest())"
58+
run ddev exec pip2 --version
59+
assert_success
60+
assert_output "pip 20.0.2 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)"
61+
62+
run ddev exec pip2.7 --version
63+
assert_success
64+
assert_output "pip 20.0.2 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)"
65+
66+
run ddev exec python -c "import hashlib; print('MD5:', hashlib.md5('test').hexdigest())"
5567
assert_success
5668
assert_output "('MD5:', '098f6bcd4621d373cade4e832627b4f6')"
5769

58-
run python -c "import ssl; print('SSL:', ssl.OPENSSL_VERSION)"
70+
run ddev exec python -c "import ssl; print('SSL:', ssl.OPENSSL_VERSION)"
5971
assert_success
6072
assert_output "('SSL:', 'OpenSSL 1.1.1d 10 Sep 2019')"
6173
}

0 commit comments

Comments
 (0)