Steven Silvester
029c74cb3a
PYTHON-5670 Restore minimal support for Python 3.9 ( #2640 )
2025-12-16 13:32:40 -06:00
Steven Silvester
ae88b5a08f
PYTHON-5530 Reduce usage of legacy test runner ( #2642 )
2025-12-10 13:40:24 -06:00
Noah Stapp
5f00966f9c
[TASK]-[PYTHON-5623]: Change with_transaction callback return type to Awaitable ( #2594 )
...
Co-authored-by: Logan Pulley <logan@pulley.host>
2025-10-29 14:31:25 -04: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
Steven Silvester
1bcb85f1c1
PYTHON-5321 Remove Serverless testing ( #2359 )
2025-06-09 19:46:10 -05:00
Noah Stapp
bc2cc1ed58
PYTHON-4924 - PoolClearedError should have TransientTransactionError … ( #2244 )
2025-04-08 11:39:06 -04:00
Steven Silvester
711a45a0e9
PYTHON-4938 Clarify write concern rules in the transactions spec ( #2231 )
2025-03-31 19:23:32 -05:00
Noah Stapp
a3f3ec52bc
PYTHON-4946 - Add GridFSBucket.rename_by_name ( #2219 )
2025-03-31 14:02:06 -04:00
Noah Stapp
8675a163df
PYTHON-4947 - GridFS spec: Add performant 'delete revisions by filena… ( #2218 )
2025-03-31 09:07:53 -04:00
Noah Stapp
34ca759f85
PYTHON-5113 - Refactor test utils for async ( #2149 )
2025-03-12 12:59:56 -04:00
Shane Harvey
2b667df14f
PYTHON-5120 Reduce configureFailPoint duplication in tests ( #2131 )
2025-02-26 11:16:44 -08: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
739510214b
PYTHON-4731 - Explicitly close all MongoClients opened during tests ( #1855 )
2024-09-17 09:22:17 -04:00
Shane Harvey
6bdaf19c78
PYTHON-4617 Skip unified retryable writes tests on MMAPv1 ( #1841 )
2024-09-06 10:46:10 -07:00
Steven Silvester
f69d330b25
PYTHON-4654 Clean up Async API to match Motor ( #1789 )
2024-08-13 19:17:45 -05:00
Noah Stapp
b6f72adb21
PYTHON-4533 - Convert test/test_sessions.py to async ( #1733 )
2024-07-16 12:58:01 -07:00
Noah Stapp
1b3dea3f03
PYTHON-4533 - Convert test/test_transactions.py to async ( #1732 )
2024-07-15 16:45:59 -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
e37394d402
PYTHON-2723 Convert transactions spec tests to unified test format ( #1543 )
2024-03-26 17:28:32 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Iris
e23eb7691e
PYTHON-3811 add types to operations.py ( #1313 )
2023-07-18 14:28:57 -07:00
Noah Stapp
b16e06acfd
PYTHON-3727 Use tox for unit tests and switch to pytest ( #1249 )
2023-06-21 15:07:14 -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
92e6150d84
PYTHON-3493 Bulk Write InsertOne Should Be Parameter Of Collection Type ( #1106 )
2022-11-10 14:19:55 -08:00
Shane Harvey
6acc9f64cf
PYTHON-3333 Fix bug where non-cursor read operations fail in a transaction with directConnection=True on primary ( #991 )
2022-07-06 11:39:41 -07:00
Shane Harvey
a624197338
PYTHON-3260 Improve test_transaction_starts_with_batched_write and test_continuous_network_errors ( #945 )
2022-05-10 10:29:48 -07: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
754e52890f
PYTHON-2915 Skip large txn test on slow Windows hosts ( #788 )
2021-11-15 13:01:45 -08:00
Shane Harvey
df6f6496a4
PYTHON-2927 PYTHON-2937 Skip failing tests on PyPy ( #753 )
...
Cleanup test clients more eagerly.
2021-10-13 10:29:38 -07:00
Shane Harvey
7467aa634d
PYTHON-2915 Fix bug when starting a transaction with a large bulk write ( #743 )
2021-09-24 15:47:37 -07:00
Shane Harvey
65aa7c86d5
PYTHON-2850 Remove map_reduce/inline_map_reduce ( #703 )
2021-08-12 09:44:52 -07:00
Prashant Mital
f07da34f97
PYTHON-2545 Test Atlas Serverless ( #664 )
2021-07-27 16:35:09 -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
Shane Harvey
61c6876872
PYTHON-2635 Unpin sessions after all abortTransaction attempts ( #609 )
...
Add unified test runner for transactions.
2021-04-28 12:38:13 -07:00
Bernie Hackett
a72e8b8823
PYTHON-2133 Remove py2 support from test
...
Also delete bson/py3compat.py
2021-01-20 09:40:36 -08:00
Shane Harvey
5d92b2f552
PYTHON-2243 Raise informative error message when attempting a GridFS operation in a transaction ( #454 )
2020-07-07 18:55:17 -07:00
Shane Harvey
4457714d1b
PYTHON-2082 Unpin session after RetryableWriteErrors from commitTransaction ( #451 )
...
PYTHON-2154 PYTHON-2189 Remove 4.5 transaction test workarounds
2020-07-01 18:32:58 -07:00
Shane Harvey
5b49557c59
PYTHON-2268 Close clients in test suite
2020-06-03 17:05:59 -07:00
Shane Harvey
d8342367a9
PYTHON-2214 Tolerate StaleConfig errors in test_create_collection
2020-04-29 11:43:10 -07:00
Shane Harvey
b7f4faeeab
PYTHON-2189 Ignore StaleConfig transaction errors on 4.5+ mongos
2020-04-17 16:19:39 -07:00
Shane Harvey
fd64f4dd64
PYTHON-2030 Support collection and index creation in multi-doc transactions
2020-04-02 12:20:50 -07:00
Prashant Mital
f62c53f472
PYTHON-2020 Make ClientSession._in_transaction a public property
2019-11-01 16:58:38 -07:00
Shane Harvey
4170d8ac7f
PYTHON-1829 Support maxTimeMS for commitTransaction
...
Add max_commit_time_ms to TransactionOptions.
MaxTimeMSExpired errors on commit are labelled UnknownTransactionCommitResult.
with_transaction does not retry commit after MaxTimeMSExpired errors.
2019-06-04 15:44:32 -07:00
Shane Harvey
87951c33f8
PYTHON-1674 Refactor spec test runner for transactions
...
This enables us to reuse the transaction spec runner for tesing
retryable reads.
2019-04-25 14:27:41 -07:00
Shane Harvey
2bdc188163
PYTHON-1795 Workaround StaleDbVersion on distinct
2019-04-02 13:15:23 -07:00
Shane Harvey
923229de12
PYTHON-1757 Properly skip tests that require enableTestCommands
2019-03-14 16:24:36 -07:00
Bernie Hackett
9ca4800543
PYTHON-1740 - Fix up transaction tests
2019-03-13 16:10:03 -07:00