From 66926155bace376e461a1057a0d6dc38d7e83433 Mon Sep 17 00:00:00 2001 From: Kyle Suarez Date: Mon, 21 Jul 2014 11:52:34 -0400 Subject: [PATCH] Style and formatting changes Update CHANGES.TXT and fix minor alignment issue in test_column_types. --- CHANGES.TXT | 15 ++++++++------- test/test_column_types.py | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGES.TXT b/CHANGES.TXT index e1e29a8..917bd0e 100644 --- a/CHANGES.TXT +++ b/CHANGES.TXT @@ -1,21 +1,22 @@ Version 0.3.0 ------------- - * Upgraded to latest version of Mongo C driver (0.96.4). + * Upgraded to latest version of Mongo C driver (0.98.0). * monary_connect() now takes a MongoDB URI or a hostname and port. (See http://docs.mongodb.org/manual/reference/connection-string/ for more information.) - * cmonary.c can now upcast or downcast to and from any integer or - floating-point type retrieved from MongoDB. - More detail + * cmonary.c can now freely cast between all integer and floating-type + values. * Turned off debug messages by default. * datehelper.py now allows negative timedeltas and times before the epoch - * Removed the authenticate() method, this is a _breaking change_. + * Removed the authenticate() method: this is a breaking change. If your code + relied on authenticate(), you must now include the username and password + in the MongoDB URI passed into the Monary constructor. Version 0.2.3 ------------- @@ -54,9 +55,9 @@ Version 0.1.1 * Bugfix release for issue with ObjectIDs containing NULL bytes (ObjectIDs now use a 12-byte 'void' array type in numeric python.) - + * Support for int8, int16, int64, and float32 column types. - + * Basic tests for all column types (requires nosetests). Version 0.1 diff --git a/test/test_column_types.py b/test/test_column_types.py index 0175d10..63b7fdf 100644 --- a/test/test_column_types.py +++ b/test/test_column_types.py @@ -137,7 +137,7 @@ def test_bson_column(): rawdata = get_monary_column("subdocumentval", "bson:%d" % size) data = ["".join(c for c in x.data.data) for x in rawdata] expected = ["".join(c for c in bson.BSON.encode(record)) - for record in get_record_values("subdocumentval")] + for record in get_record_values("subdocumentval")] assert data == expected def test_type_column():