Commit Graph

98 Commits

Author SHA1 Message Date
Shane Harvey
f50ef65dd5
PYTHON-5409 Make test_implicit_sessions_checkout less flaky (#2366) 2025-06-09 11:26:07 -07:00
Iris
b8460b6001
PYTHON-5387 Better test assertions for membership (#2348) 2025-05-23 09:04:32 -07: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
85ca6f1d9f
PYTHON-4579 Stop gossiping $clusterTime on SDAM connections (#1925) 2025-02-26 13:18:04 -08:00
Noah Stapp
3dd44e6e5f
PYTHON-5087 - Convert test.test_load_balancer to async (#2103) 2025-02-06 10:07:24 -05: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
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
ffa6555485
PYTHON-4476 Separate data and IO classes more effectively (#1678) 2024-06-26 10:12:39 -07:00
Noah Stapp
8b6bb832ac
PYTHON-4503 - Re-enable accidentally disabled tests (#1683) 2024-06-14 09:25:34 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Noah Stapp
62c6d0f330
PYTHON-3587 Do not perform server selection to determine sessions support (#1491) 2024-02-05 13:19:26 -08:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05: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
Steven Silvester
cfa2d990f0
PYTHON-3228 _tmp_session should validate session input (#930) 2022-04-18 20:38:46 -05:00
Shane Harvey
484058e18d
PYTHON-3160 Fix MMAPv1 tests (#914) 2022-03-30 21:50:22 -07:00
Julius Park
b737b843e9
PYTHON-2956 Drivers should check out an implicit session only after checking out a connection (#876) 2022-03-01 15:44:05 -08:00
Shane Harvey
a3f0f91588
PYTHON-3123 Convert sessions spec tests to unified test format (#888)
Create implicit session _before_ starting a retryable read.
2022-02-25 10:36:05 -08:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06: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
b342990934
PYTHON-2164 Add MongoClient.options, remove redundant properties (#772) 2021-11-03 11:21:33 -07:00
Shane Harvey
f4eb8f93fd
PYTHON-2966 Make MongoClient.event_listeners work as expected (#761) 2021-10-22 14:43:20 -07:00
Shane Harvey
11752ed594
PYTHON-2899 Remove code for MongoDB <= 3.4 (#729)
Remove unneeded memoryview to bytes conversion.
2021-09-16 16:53:50 -07:00
Julius Park
4e086ba218
PYTHON-1915 Prohibit copying ClientSession objects (#726) 2021-09-15 12:05:09 -07:00
Bernie Hackett
ad4315134c PYTHON-2803 Get rid of most uses of 'master'
This change also resolves PYTHON-2848 for MongoDB 4.0.
2021-09-13 12:50:49 -07:00
Shane Harvey
65aa7c86d5
PYTHON-2850 Remove map_reduce/inline_map_reduce (#703) 2021-08-12 09:44:52 -07:00
Shane Harvey
e1b068d37a
PYTHON-2525 Remove Collection.count and Cursor.count (#700) 2021-08-10 13:52:29 -07:00
Shane Harvey
edda903b5b
PYTHON-2711 Remove profile command helpers (#693) 2021-08-06 12:54:52 -07:00
Shane Harvey
69dee51b90
PYTHON-1318 Remove initialize_unordered_bulk_op and initialize_ordered_bulk_op (#692)
PYTHON-2436 Unskip test_large_inserts_ordered on MongoDB 5.0.
2021-08-05 17:58:15 -07:00
Shane Harvey
3513ab72b0 PYTHON-2528 Remove Database.current_op 2021-08-04 11:14:50 -07:00
Prashant Mital
f07da34f97
PYTHON-2545 Test Atlas Serverless (#664) 2021-07-27 16:35:09 -07:00
Prashant Mital
0e0c4fd944
PYTHON-2389 Add session support to find_raw_batches and aggregate_raw_batches (#658) 2021-06-30 19:14:22 -07:00
Shane Harvey
14160aed04
PYTHON-2767 Support snapshot reads on secondaries (#656)
Add the MongoClient.start_session snapshot option.
2021-06-25 16:12:12 -07:00
Shane Harvey
95974617bd
PYTHON-1314 Remove Database.authenticate and Database.logout (#568) 2021-02-17 14:16:07 -08:00
Shane Harvey
2565b4d291
PYTHON-1312 Remove Database.add_user and Database.remove_user (#561) 2021-01-26 12:49:49 -08:00
Bernie Hackett
cf877e95c7 PYTHON-2503 Always use time.monotonic
For monotonic time needs.
2021-01-25 12:48:31 -08:00
Shane Harvey
c65b89d8a1
PYTHON-1319 Remove Collection.ensure_index and reindex (#555) 2021-01-21 11:25:19 -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
Shane Harvey
6e8c3708b8
PYTHON-1587 Remove MongoClient.database_names and Database.collection_names (#551) 2021-01-15 16:53:42 -08:00
Shane Harvey
3c899aeb89
PYTHON-1592 Remove Collection.parallel_scan (#547) 2021-01-15 14:01:45 -08:00
Shane Harvey
387bfa0bfa
PYTHON-2310 Remove MongoClient.fsync, unlock, and is_locked (#546) 2021-01-15 11:29:23 -08:00
Shane Harvey
17dca5c504 Revert "PYTHON-1915: Prohibit copying ClientSession objects (#480)"
This reverts commit 959039b213.
2020-11-16 15:09:31 -08:00
ishmum123
959039b213
PYTHON-1915: Prohibit copying ClientSession objects (#480) 2020-08-21 11:10:40 -07:00