Commit Graph

67 Commits

Author SHA1 Message Date
Steven Silvester
029c74cb3a
PYTHON-5670 Restore minimal support for Python 3.9 (#2640) 2025-12-16 13:32:40 -06:00
Steven Silvester
0ce7686c64
PYTHON-5563 Fix unified test discovery (#2644) 2025-12-16 13:30:30 -06:00
dependabot[bot]
49e59d41b2
PYTHON-5661 Bump mypy from 1.18.2 to 1.19.0 (#2629)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
2025-12-10 10:37:29 -06:00
Steven Silvester
e0767cf5a1
PYTHON-5479 Drop support for Python 3.9 (#2562)
Co-authored-by: Noah Stapp <noah@noahstapp.com>
2025-09-26 09:54:19 -05:00
Noah Stapp
e2bfa9a590
PYTHON-5248 - Drop support for MongoDB 4.0 (#2353) 2025-06-20 14:25:19 -04:00
Noah Stapp
e724d66bb5
PYTHON-5250 - Change streams expanded events present by default in 8.2+ (#2252) 2025-04-01 15:01:38 -04:00
Noah Stapp
34ca759f85
PYTHON-5113 - Refactor test utils for async (#2149) 2025-03-12 12:59:56 -04:00
Noah Stapp
0e8d70457f
Async client uses tasks instead of threads
PYTHON-4725 - Async client should use tasks for SDAM instead of threads
PYTHON-4860 - Async client should use asyncio.Lock and asyncio.Condition
PYTHON-4941 - Synchronous unified test runner being used in asynchronous tests
PYTHON-4843 - Async test suite should use a single event loop
PYTHON-4945 - Fix test cleanups for mongoses

Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
2024-11-26 16:55:27 -05:00
Noah Stapp
a1ade45dd3
PYTHON-4881 - Use OvertCommandListener wherever sensitive events are not needed (#1943)
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
2024-10-18 13:32:09 -04:00
Noah Stapp
739510214b
PYTHON-4731 - Explicitly close all MongoClients opened during tests (#1855) 2024-09-17 09:22:17 -04:00
Iris
0c0633da23
PYTHON-4763 Migrate test_change_stream.py to async (#1853) 2024-09-16 10:20:34 -07:00
Shane Harvey
13cf110f01
PYTHON-4633 Speed up TestCollectionChangeStream.test_uuid_representations (#1775) 2024-08-07 16:17:48 -07:00
Noah Stapp
ffa6555485
PYTHON-4476 Separate data and IO classes more effectively (#1678) 2024-06-26 10:12:39 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide (#1414) 2023-11-01 19:37:22 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05:00
Steven Silvester
42d87e2c9c
PYTHON-3985 [Build Failure] TestCollectionChangeStream.test_split_large_change (#1383) 2023-10-03 12:29:04 -05:00
Noah Stapp
db4406b951
PYTHON-3848 Test $changeStreamSplitLargeEvent on MongoDB 6.0.9+ (#1377) 2023-09-18 11:11:10 -07:00
Shane Harvey
ece45b1edf
PYTHON-3699 Add prose test for change stream splitting (#1232) 2023-06-14 10:00:52 -07:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 (#1196)
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Shane Harvey
79aa5e6757
PYTHON-3516 Improve test EventListener api (#1114) 2022-11-14 08:50:08 -08:00
Julius Park
2af12e6463
PYTHON-3444 MyPy Errors With Version 0.981 (#1063) 2022-09-26 15:48:48 -07:00
Shane Harvey
5b85ad2bcf
PYTHON-3391 Skip unsupported CSOT tests on serverless (#1030) 2022-08-03 13:30:41 -07:00
Shane Harvey
7c19ff7f7a
PYTHON-3389 Close ChangeStream after non-resumable non-timeout errors (#1029) 2022-08-03 12:23:50 -07:00
Shane Harvey
864812d400
PYTHON-3366 Support mypy 0.971 and test with latest version (#1021)
PYTHON-3369 Use https://www.gevent.org
2022-07-25 15:25:41 -07:00
Shane Harvey
4d4fddaf69
PYTHON-3363 Allow change stream to be resumed after a timeout (#1014)
Apply client timeoutMS to ChangeStream iteration.
2022-07-19 18:17:12 -07:00
Steven Silvester
62a6302181
PYTHON-2683 Convert change stream spec tests to unified test format (#950) 2022-06-01 18:26:52 -05:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter (#852) 2022-02-09 06:44:28 -06:00
Steven Silvester
f4cef37328
PYTHON-3064 Add typings to test package (#844) 2022-02-07 19:33:41 -06:00
Shane Harvey
fb20975a1f
PYTHON-2245 Change default uuidRepresentation to UNSPECIFIED (ie disable UUID encoding by default) (#724)
This change also stops decoding both 3 and 4 subtypes as UUIDs.
With standard, only subtype 4 is decoded to UUID and subtype 3 is decoded to Binary.
With legacy representations, only subtype 3 is decoded to UUID and subtype 4 is decoded to Binary.
2021-09-14 16:48:52 -07:00
Bernie Hackett
f64c5aa940 PYTHON-2904 Further language modernization 2021-09-14 12:24:06 -07:00
Prashant Mital
f07da34f97
PYTHON-2545 Test Atlas Serverless (#664) 2021-07-27 16:35:09 -07:00
Shane Harvey
b4b7a07b81
PYTHON-2762 Avoid duplicating unified test files for LB testing (#649)
Create new client for each cursor/session __del__ test.
Always close cursors in spec tests.
2021-06-25 16:20:21 -07:00
Shane Harvey
2a74601572
PYTHON-2676 Unified Test Runner changes in preparation for Load Balancer Support (#623)
Resync crud, change stream, SDAM, server_selection, transactions, uri-options, tests.
PYTHON-2348 Correctly express lack of event assertions in change stream tests.
2021-05-18 10:20:36 -07:00
Prashant Mital
4088c1cee0
Python 2548/add update description.truncated arrays field (#572) 2021-03-02 11:06:56 -08:00
Bernie Hackett
a72e8b8823 PYTHON-2133 Remove py2 support from test
Also delete bson/py3compat.py
2021-01-20 09:40:36 -08:00
Prashant Mital
65699332c4
PYTHON-2376 Fix change stream test failures due to new updateDescription.truncatedArrays field in changeEvent documents (#489) 2020-09-28 15:55:07 -07:00
Prashant Mital
98f8470b5b
PYTHON-2306 Test that change streams don't resume from ElectionInProgress (#465) 2020-07-16 18:18:19 -07:00
Prashant Mital
065001ef2e
PYTHON-2305 Cache postBatchResumeToken when an aggregate command returns an empty firstBatch (#456) 2020-07-08 14:51:17 -07:00
Prashant Mital
956ce3d4b0
Incorporate review changes 2020-07-01 16:47:33 -07:00
Prashant Mital
9fc7ed1e11
PYTHON-2143 Use an allow-list to determine resumable change stream errors 2020-07-01 16:43:27 -07:00
Shane Harvey
6ee80cecfa PYTHON-2124 Assert no gc.garbage at test suite teardown and enable debug output 2020-02-20 15:04:31 -08:00
Shane Harvey
9079596bf0 PYTHON-2120 Skip failing ChangeStream tests on 4.4 2020-02-10 12:49:45 -08:00
Prashant Mital
e31a0ef95f
PYTHON-1911 Implement missing changeStream prose tests 2019-11-20 19:46:07 -08:00
Prashant Mital
ef3df1663c
PYTHON-1918 Stop using BSON.encode and BSON.decode functions 2019-09-09 18:06:46 -07:00
Prashant Mital
ddac30d2ff
PYTHON-1742 add postBatchResumeToken support
PYTHON-1815 add tests for postBatchResumeToken support
PYTHON-1845 clarify resume token used in resuming and getResumeToken
2019-07-25 17:18:35 -07:00
Prashant Mital
886cf657bb
PYTHON-1905 Don't send fullDocument field by default with every
$changeStream pipeline stage
2019-07-16 19:13:57 -07:00
Prashant Mital
26d25cd74e
PYTHON-1841 ChangeStream should not resume after errors with NonRetryableChangeStreamError label 2019-07-02 18:55:35 -07:00
Prashant Mital
3ba46a9911
PYTHON-1877 Fix result assertion in changeStream spec tests
PYTHON-1713 Resync change stream tests to test all new notification types
2019-07-02 13:26:21 -07:00
Prashant Mital
0b72f88363
PYTHON-1871 ChangeStreams must honor batchSize 2019-06-14 10:25:41 -07:00