Skip to content

Commit 6587cc8

Browse files
committed
improve tests
1 parent 1279638 commit 6587cc8

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
```bash
1616
ddev add-on get https://github.com/stasadev/ddev-python2/tarball/refs/pull/REPLACE_ME_WITH_THIS_PR_NUMBER/head
1717
ddev restart
18-
ddev exec python -V
18+
ddev exec python --version
1919
```
2020

2121
## Automated Testing Overview

tests/test.bats

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,25 @@ setup() {
3939
}
4040

4141
health_checks() {
42-
run ddev exec python -V
42+
run ddev exec python --version
4343
assert_success
4444
assert_output "Python 2.7.18"
4545

46-
run ddev exec python2.7 -V
46+
run ddev exec python2.7 --version
4747
assert_success
4848
assert_output "Python 2.7.18"
49+
50+
run ddev exec pip --version
51+
assert_success
52+
assert_output "pip 20.0.2 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)"
53+
54+
run python -c "import hashlib; print('MD5:', hashlib.md5('test').hexdigest())"
55+
assert_success
56+
assert_output "('MD5:', '098f6bcd4621d373cade4e832627b4f6')"
57+
58+
run python -c "import ssl; print('SSL:', ssl.OPENSSL_VERSION)"
59+
assert_success
60+
assert_output "('SSL:', 'OpenSSL 1.1.1d 10 Sep 2019')"
4961
}
5062

5163
teardown() {

0 commit comments

Comments
 (0)