Commit Graph

30 Commits

Author SHA1 Message Date
Steven Silvester
f905df8553
MOTOR-1139 Switch to Pytest (#222) 2023-08-23 15:52:07 -05:00
Steven Silvester
690c781066
MOTOR-933 Require Python 3.7+ (#156) 2022-04-14 13:42:56 -05:00
Steven Silvester
1e62b868ea
MOTOR-896 Add automatic code formatting (#144) 2022-02-15 20:29:02 -06:00
Shane Harvey
959c768260
MOTOR-488 Don't call set_result on a cancelled tasks (#66)
Add test case for cancelled async cursor iteration.
Fix AttributeError: '_LatentCursor' object has no attribute '_CommandCursor__address'
2020-08-04 16:20:00 -07:00
Prashant Mital
8208420d61
MOTOR-581 Remove __future__ imports (#64) 2020-07-28 17:51:10 -07:00
Prashant Mital
b32a050f68
MOTOR-443 Implement convenient transaction API prose tests 2019-11-11 16:12:03 -08:00
Shane Harvey
dd045250c8 MOTOR-442 Always convert ASYNC_TEST_TIMEOUT to float 2019-10-30 15:46:19 -07:00
A. Jesse Jiryu Davis
3d41e116f2 Refactor tests' use of EventListener 2018-07-05 16:04:54 -07:00
A. Jesse Jiryu Davis
1b3b69f9cc MOTOR-204 Delete add_user and remove_user 2018-06-09 16:42:58 -04:00
A. Jesse Jiryu Davis
90e816fffc MOTOR-203 - Fix auth tests for MongoDB 4 2018-02-27 12:14:18 -05:00
A. Jesse Jiryu Davis
e6d8922d86 MOTOR-159 Sessions API 2017-12-09 12:32:12 -05:00
A. Jesse Jiryu Davis
e1ab4cda4b MOTOR-137 Delete unreliable find_is_async test 2017-04-23 14:34:42 -05:00
A. Jesse Jiryu Davis
9176352a2b MOTOR-87 Initial port to PyMongo 3.3. 2016-10-26 06:28:45 -04:00
A. Jesse Jiryu Davis
edc5897aba MOTOR-115 Avoid deprecation warnings in tests. 2016-09-21 22:19:28 -04:00
A. Jesse Jiryu Davis
86664bf750 Silence DeprecationWarnings from test_op. 2015-09-27 15:19:05 -04:00
A. Jesse Jiryu Davis
4fa7d84c71 Modern check for enableTestCommands. 2015-08-31 22:42:20 -04:00
A. Jesse Jiryu Davis
1b2a4c903b MOTOR-75 Skip asyncio or Tornado tests if need be.
Move the Tornado-specific suite into a subdirectory and skip it if
Tornado is not installed.
2015-08-31 22:42:20 -04:00
A. Jesse Jiryu Davis
ad64c369d9 MOTOR-40 Move test-environment discovery into test_environment.py. 2014-07-13 07:57:43 -04:00
A. Jesse Jiryu Davis
18920382bd MOTOR-38, fix tests for narrowed localhost exception.
See SERVER 12621, nearly the only thing allowed on MongoDB 2.7.1+,
for a server started with auth but with no users, is to create an admin
user. Motor's tests now detect this case and immediately create an
admin user. The test MotorClient remains logged in as the admin user
throughout the suite.
2014-06-28 17:30:35 -07:00
A. Jesse Jiryu Davis
2bb699d580 MOTOR-28 Import SkipTest from unittest or unittest2, not nose.
I intend to use unittest2's backport in Pyhon 2.6.
2014-04-16 15:17:15 -04:00
A. Jesse Jiryu Davis
19d315142c Support Python 2.6+ with single source and "six" in Motor and its unittests. 2014-04-14 11:20:50 -04:00
A. Jesse Jiryu Davis
e855088be5 Skip some tests when connected to mongos. 2014-02-21 21:51:31 -05:00
A. Jesse Jiryu Davis
034d0fe1a9 Update copyright and company name. 2014-01-31 16:57:51 -05:00
A. Jesse Jiryu Davis
0e37ab5968 Use Motor instead of PyMongo in test utilities. 2013-12-18 15:03:17 -05:00
A. Jesse Jiryu Davis
91e37ade68 pep8 spacing in utils.py. 2013-12-18 15:03:17 -05:00
A. Jesse Jiryu Davis
6f5f8f59fc Start adapting test_authenticate for MongoDB 2.5.4+. 2013-12-18 15:03:16 -05:00
A. Jesse Jiryu Davis
6b62fd0259 Finish updating tests for connection -> client term change 2013-02-25 12:39:40 -05:00
A. Jesse Jiryu Davis
06295ec016 Simpler delay() test utility 2013-02-20 14:19:00 -05:00
A. Jesse Jiryu Davis
966b5a540f test_motor_ha needs the one() utility function 2013-01-15 16:11:11 -05:00
A. Jesse Jiryu Davis
3d6089eeee Initial import from my fork of PyMongo
https://github.com/ajdavis/mongo-python-driver/tree/motor/ is now deprecated :-)
2013-01-15 14:07:09 -05:00