Commit Graph

40 Commits

Author SHA1 Message Date
Noah Stapp
e2bfa9a590
PYTHON-5248 - Drop support for MongoDB 4.0 (#2353) 2025-06-20 14:25:19 -04:00
Shane Harvey
e28f49c510
PYTHON-5164 Fix mockupdb TestClusterTime (#2163) 2025-02-28 15:24:28 -08:00
Noah Stapp
b9f4f796f1
Revert "PYTHON-4915 - Add guidance on adding _id fields to documents to CRUD spec, reorder client.bulk_write generated _id fields" (#2055)
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
2025-01-13 09:16:28 -05:00
Noah Stapp
72a51092cd
PYTHON-4915 - Add guidance on adding _id fields to documents to CRUD spec, reorder client.bulk_write generated _id fields (#1976) 2024-11-12 09:32:41 -05:00
Steven Silvester
9a11b78fdf
PYTHON-4209 Fix test for ensure that no error is raised for unknown auth mechanism (#1982) 2024-10-30 12:49:20 -05:00
Steven Silvester
dfb6a9a4f3
PYTHON-4209 Ensure that no error is raised for unknown auth mechanism (#1981) 2024-10-29 11:08:22 -05:00
Shane Harvey
ac198af557
PYTHON-4729 Drop support for MongoDB 3.6 (#1905) 2024-10-09 09:58:20 -07:00
Steven Silvester
0279407980
PYTHON-4806 Fix expected metadata in mockupdb tests (#1888) 2024-10-01 14:31:21 -05:00
Noah Stapp
2c432b580b
PYTHON-4768 - Fix atlas connection tests and cleanup uses of raw MongoClients in tests (#1867) 2024-09-18 09:23:07 -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
4d4813070d
PYTHON-4667 Handle $clusterTime from error responses in client Bulk Write (#1822) 2024-09-04 19:40:37 -05:00
Noah Stapp
993171cd3d
PYTHON-4565 - Use pytest markers for test suite configuration (#1741) 2024-07-23 14:28:55 -05: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
Shane Harvey
aa8322e1ce
PYTHON-2048 Add test case for better error behavior (#1606) 2024-04-17 15:50:15 -07:00
Noah Stapp
ebb94b669e
PYTHON-3457 Easier debugging with standardized logging (#1515)
PYTHON-3458 Add command logging.
PYTHON-3459 Add server selection logging.
PYTHON-3473 Add connection pool logging.
PYTHON-4167 Add documentation and examples.

Co-authored-by: sleepyStick <itsirisho@gmail.com>
2024-02-15 11:35:08 -08:00
Jib
0ff6a87438
PYTHON-4038: Ensure retryable read OperationFailures re-raise exception when 0 or NoneType error code is provided. (#1425) 2023-11-15 15:03:36 -05:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide (#1414) 2023-11-01 19:37:22 -05:00
Shane Harvey
650cde992f
PYTHON-4007 Stop sending exhaustAllowed to Serverless/load balanced clusters unless configured (#1405) 2023-10-23 15:49:21 -07:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05:00
Noah Stapp
c88ae79e58
PYTHON-3879 Rename SocketInfo to Connection (#1329) 2023-07-28 10:04:16 -07:00
Noah Stapp
d5882075d6
PYTHON-3789 Use tox for Evergreen mockupdb tests (#1277) 2023-06-28 10:57:23 -07:00
Dainis Gorbunovs
c7e06e6fc1
PYTHON-3725 Fix Test Failure - MockupDB test_network_disconnect_primary (#1222) 2023-06-05 16:38:28 -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
b290f7b1a1
PYTHON-3526 Fix mockup tests (#1119) 2022-11-17 12:26:32 -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
1abcd3fc0c
PYTHON-3513 Correctly pin to mypy==0.990 (#1110) 2022-11-07 13:01:56 -08:00
Shane Harvey
502effeeba
PYTHON-3167 Fix mockupdb tests for estimated_document_count (#938) 2022-05-05 10:52:53 -07: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
Julius Park
51691246e9
PYTHON-2858 Use OP_MSG to authenticate if server supports OP_MSG (#843) 2022-02-03 15:25:14 -08:00
Julius Park
4eeb685c57
PYTHON-3069 Require hello command + OP_MSG when 'loadBalanced=True' (#837) 2022-01-26 11:57:36 -08:00
Steven Silvester
52ed5a4135
PYTHON-3052 Add Typings to PyMongo Itself (#829) 2022-01-13 16:09:48 -06:00
Shane Harvey
ff3a8b44dc
PYTHON-1864 PYTHON-2931 Spec complaint $readPreference (#809)
Stop sending $readPreference to standalone servers.
Stop sending $readPreference primary because it's the server default.
Remove outdated secondary_ok flag.
2021-12-13 15:47:34 -08:00
Shane Harvey
5ec4e6cc4c
PYTHON-3027 Fix server selection when topology type is Unknown (#806) 2021-12-02 13:45:50 -08:00
Shane Harvey
79659063c5
PYTHON-3021 Send primaryPreferred when connected to standalone servers (#799) 2021-11-18 16:28:02 -08:00
Shane Harvey
5b8b09ac4f
PYTHON-3020 Properly mark server unknown after "not master" errors without a code (#797)
Fix prefer-error-code SDAM test.
2021-11-17 18:18:41 -08:00
Julius Park
9cf88cfdc1
PYTHON-2773 Mockupdb test failures (#796) 2021-11-17 17:37:05 -08:00
Julius Park
8fc6dc3c4f
PYTHON-1489 Merge ajdavis/pymongo-mockup-tests into pymongo (#787) 2021-11-16 16:26:18 -08:00