File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ set -o errexit # Exit the script with error if any of the commands fail
21
21
# TEST_FLE_GCP_AUTO If non-empy, test auto FLE on GCP
22
22
# TEST_PYOPENSSL If non-empy, test with PyOpenSSL
23
23
# TEST_ENCRYPTION_PYOPENSSL If non-empy, test encryption with PyOpenSSL
24
+ # TEST_ATLAS If non-empty, test Atlas connections
24
25
25
26
if [ -n " ${SET_XTRACE_ON} " ]; then
26
27
set -o xtrace
@@ -168,6 +169,11 @@ if [ -n "$TEST_DATA_LAKE" ] && [ -z "$TEST_ARGS" ]; then
168
169
TEST_ARGS=" test/test_data_lake.py"
169
170
fi
170
171
172
+ if [ -n " $TEST_ATLAS " ]; then
173
+ TEST_ARGS=" test/atlas/test_connection.py"
174
+ fi
175
+
176
+
171
177
echo " Running $AUTH tests over $SSL with python $PYTHON "
172
178
python -c ' import sys; print(sys.version)'
173
179
@@ -190,7 +196,7 @@ if [ -z "$GREEN_FRAMEWORK" ]; then
190
196
python -c " from bson import _cbson; from pymongo import _cmessage"
191
197
fi
192
198
193
- python -m pytest $TEST_ARGS
199
+ python -m pytest -v $TEST_ARGS
194
200
else
195
201
python -m pip install $GREEN_FRAMEWORK
196
202
python green_framework_test.py $GREEN_FRAMEWORK
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ passenv = *
152
152
allowlist_externals = bash
153
153
commands =
154
154
{[testenv:aws-secrets]commands}
155
- bash -c " source ./secrets-export.sh; python -m pytest -v ./ test/atlas/test_connection.py "
155
+ bash -c " source ./secrets-export.sh; TEST_ATLAS=1 tox -m test-eg "
156
156
157
157
[testenv:test-mockupdb]
158
158
description = run mockupdb tests
You can’t perform that action at this time.
0 commit comments