Skip to content

Commit

Permalink
PYTHON-4530 - Move synchronized test code into top-level test directo…
Browse files Browse the repository at this point in the history
…ry (#1718)
  • Loading branch information
NoahStapp authored Jul 2, 2024
1 parent 2d301e2 commit cfa215c
Show file tree
Hide file tree
Showing 17 changed files with 851 additions and 3,805 deletions.
3 changes: 0 additions & 3 deletions .evergreen/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ if [ -z "$GREEN_FRAMEWORK" ]; then
# Use --capture=tee-sys so pytest prints test output inline:
# https://docs.pytest.org/en/stable/how-to/capture-stdout-stderr.html
python -m pytest -v --capture=tee-sys --durations=5 --maxfail=10 $TEST_ARGS
if [ -z "$TEST_ARGS" ]; then # TODO: remove this in PYTHON-4528
python -m pytest -v --capture=tee-sys --durations=5 --maxfail=10 test/synchronous/ $TEST_ARGS
fi
python -m pytest -v --capture=tee-sys --durations=5 --maxfail=10 test/asynchronous/ $TEST_ARGS
else
python green_framework_test.py $GREEN_FRAMEWORK -v $TEST_ARGS
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,4 @@ jobs:
which python
pip install -e ".[test]"
pytest -v
pytest -v test/synchronous/
pytest -v test/asynchronous/
2 changes: 1 addition & 1 deletion mypy_test.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exclude = (?x)(
| ^test/conftest.py$
)

[mypy-pymongo.synchronous.*,gridfs.synchronous.*,test.synchronous.*]
[mypy-pymongo.synchronous.*,gridfs.synchronous.*,test.*]
warn_unused_ignores = false
disable_error_code = unused-coroutine

Expand Down
Loading

0 comments on commit cfa215c

Please sign in to comment.