1
0
mirror of https://github.com/bspeice/metrik synced 2024-12-24 22:48:10 -05:00

Fix an issue with Py2-3 compatibility in the test

The actual code is still running fine.
This commit is contained in:
Bradlee Speice 2016-08-29 23:17:54 -04:00
parent 905fb6092c
commit 2232283ec5

View File

@ -1,4 +1,4 @@
import random, string
from random import randint
from metrik.merge import merge, open_connection
from metrik.conf import get_config
@ -19,7 +19,7 @@ class MergeTest(MongoTest):
self.client2.drop_database(self.db2_name)
def test_left_right_merge(self):
item_string = ''.join(random.choice(string.lowercase) for i in range(10))
item_string = str(randint(-9999999, 9999999))
item = {'string': item_string}
item_id = self.db[self.collection_name].save(item)