Bernie Hackett
749c1a2f0b
PYTHON-1467 - PyMongo no longer supports Python 2.6
2018-07-02 15:15:43 -07:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Bernie Hackett
410027c057
PYTHON-1387 - Improve detection of object_pairs_hook support
2017-09-30 09:28:09 -07:00
Shane Harvey
e775295ab5
PYTHON-1367 Ignore uuid_representation when decoding BSON binary subtype 4.
2017-09-12 17:20:14 -07:00
Shane Harvey
6a11888a9c
PYTHON-1330 Decode JSON binary type 0 to Python 3 bytes.
2017-07-31 13:16:46 -07:00
Shane Harvey
888d0fab1f
PYTHON-1135 Replace JSONOptions.strict_date with JSONOptions.datetime_representation
2016-09-12 11:11:30 -07:00
Shane Harvey
b341474ef7
Fix failing datetime test
...
UTC ISO-8601 datetimes are now represented with 'Z' rather than '+0000'.
2016-08-24 15:25:37 -07:00
Luke Lovett
6692e8877a
PYTHON-1131 - Fix inconsistent handling of scope, unicode support for Code.
2016-08-19 15:22:19 -07:00
Shane Harvey
6e2ecc1817
PYTHON-1111 JSONOptions.document_class requires simplejson in Python2.6
2016-08-01 10:05:16 -07:00
Shane Harvey
57d1ccde2f
PYTHON-1111 Add JSONOptions for dumps and loads
...
PYTHON-767 Support JSON strict mode $date output
PYTHON-1039 Support JSON strict mode $numberLong output
PYTHON-1103 Support JSON strict mode UUID output
PYTHON-1111 Support custom document class in loads
PYTHON-1111 Support tz_aware and tzinfo in loads
Refactor milliseconds to datetime conversions
2016-07-27 11:32:59 -07:00
Bernie Hackett
59d8fdadc1
PYTHON-1058 - Support decoding datetime.isoformat format for $date
...
This change also adds support for the (+|-)HH offset format.
2016-05-20 13:12:47 -07:00
Bernie Hackett
4bbe2133a1
PYTHON-996 - Adjust regex tests for python 3.5
2015-09-22 15:17:50 -07:00
Bernie Hackett
aec685b374
Fix up copyright dates.
2015-03-25 11:55:02 -07:00
Bernie Hackett
bba49fd618
PYTHON-864 - Support RFC-3339 offset format for $date.
2015-03-20 16:23:55 -07:00
Bernie Hackett
30af616009
PYTHON-821 - Migrate most tests to new the CRUD API.
2015-02-13 08:46:43 -08:00
A. Jesse Jiryu Davis
beb2e412b0
Unused import
2014-12-05 15:38:40 -05:00
A. Jesse Jiryu Davis
32eecb5a91
Python 3 compatibility in TestJsonUtil.test_regex.
...
Removing "compile_re" means that Python 2 and 3 no longer behave differently,
remove test code that was specific to Python 3.
2014-12-05 15:37:16 -05:00
A. Jesse Jiryu Davis
2ba730722b
PYTHON-526 Remove 'compile_re' option.
...
PyMongo now never attempts to compile BSON regular expressions as Python native
regular expressions.
2014-12-05 14:06:38 -05:00
A. Jesse Jiryu Davis
2c6483b348
Rely on standard json module.
...
Now that we've dropped Python 2.4 and 2.5, we know the standard json module is
available.
2014-12-03 16:32:41 -05:00
Bernie Hackett
5aee3e1b31
PYTHON-791 - Fix JSON support for Timestamp.
2014-11-21 14:35:48 -08:00
A. Jesse Jiryu Davis
5991635553
Unused imports in test files.
2014-11-17 16:15:12 -05:00
A. Jesse Jiryu Davis
c5eae2f99f
Use replica set connection in tests wherever possible.
...
Most tests now inherit from IntegrationTest and use self.client for all MongoDB
operations. self.client is now a replica set connection if an RS is available,
otherwise a connection to a standalone.
2014-10-07 13:36:52 -04:00
Bernie Hackett
9c8852d93f
PYTHON-760 - BSONInt64 -> Int64
2014-09-23 11:43:41 -07:00
Bernie Hackett
6595657128
PYTHON-759 - Support $date as ISO-8601 or $numberLong
2014-09-17 14:02:18 -07:00
Luke Lovett
35c7445a67
PYTHON-708 Support $undefined and $numberLong extended JSON types.
2014-07-18 16:46:35 +00:00
Luke Lovett
4fa96c6c2e
PYTHON-683 Separate unit tests and integration tests in the pymongo test suite.
...
Raise SkipTest in tests that require a connection to MongoDB when none is available.
2014-06-30 17:42:29 +00:00
Luke Lovett
26fb43cf78
PYTHON-681 Reuse MongoClient whenever possible in the tests
2014-05-21 20:41:18 +00:00
Luke Lovett
141200083e
PYTHON-680 Stop using nose in favor of pure unittest/unittest2
2014-04-25 22:57:33 +00:00
Bernie Hackett
b26459cd6a
Remove useless uuid module checks.
...
These were only needed for python 2.4 which does
not provide a uuid module.
2014-04-24 10:09:21 -07:00
Luke Lovett
4d6d1e067b
PYTHON-676 python 2/3 single-source for the test module
2014-04-23 18:37:02 +00:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
A. Jesse Jiryu Davis
2f67eff07e
Note that we can't preserve key order in json_util.dumps in Python 2.4, PYTHON-602.
2013-12-14 12:33:46 -05:00
A. Jesse Jiryu Davis
c672b8c3cb
Python 3 compatibility when json-encoding regexes, PYTHON-602.
2013-12-14 12:33:37 -05:00
A. Jesse Jiryu Davis
51deead4ff
Preserve order in json_util.dumps, PYTHON-602.
2013-12-13 18:21:26 -05:00
A. Jesse Jiryu Davis
4b5ba70724
Support new bson.regex.Regex instances in json_util.dumps, PYTHON-500.
2013-12-13 18:21:26 -05:00
A. Jesse Jiryu Davis
bdc0398ee6
Python 2.4 compatibility for test_regex_object_hook
2013-10-20 21:12:18 -04:00
A. Jesse Jiryu Davis
e4cf504559
Option to not compile BSON regexes. PYTHON-500
...
Add a 'compile_re' parameter to Collection.find, Collection.find_one, and
json_util.loads. If it's False, regular expressions are encoded as a new class,
Regex, instead of passed to re.compile(). This allows PyMongo to handle regular
expressions that don't compile in Python but are valid in other contexts like
MongoDB queries.
2013-10-20 17:18:32 -04:00
A. Jesse Jiryu Davis
f1f7b14bf6
Allow MongoClients to be GC'ed after test runs.
...
Work around http://bugs.python.org/issue11798 to reduce max connection count during tests.
2013-08-27 09:00:50 -04:00
behackett
176e39e74a
Fix misc. $options issues in json_util PYTHON-510
2013-04-24 18:27:38 -07:00
A. Jesse Jiryu Davis
c758efcb34
Rename test_connection -> test_client, test_replica_set_connection -> test_replica_set_client PYTHON-451
2013-02-11 21:33:55 -05:00
A. Jesse Jiryu Davis
d35bec12e5
Tests use MongoClient instead of Connection PYTHON-451
2013-02-11 20:57:17 -05:00
Ross Lawley
a31cac0889
json_util fix format for binary type PYTHON-443
2012-12-05 16:23:33 +00:00
Ross Lawley
d1dc11242e
Recurse when dumping DBRefs PYTHON-433
2012-11-09 08:56:23 +00:00
A. Jesse Jiryu Davis
461e2529f7
Informative message whenever skipping a test
2012-08-21 23:24:47 -04:00
Ross Lawley
8367d49553
Added json helpers for Binary and Code types PYTHON-362
2012-07-18 10:44:34 +01:00
behackett
0ee7170cc2
It's 2012...
2012-04-19 12:40:38 -07:00
behackett
12592be1fe
Python 3 unittest changes PYTHON-84.
2012-03-28 11:53:47 -07:00
behackett
2ed05bec70
PEP8 cleanups.
2011-04-06 14:57:17 -07:00
Mike Dirolf
e61ee2b3fd
Move json_util from pymongo to bson as well PYTHON-60
2010-09-14 13:55:22 -04:00
Mike Dirolf
9c182809f3
Create a separate bson package PYTHON-60
...
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00