diff --git a/setup.cfg b/setup.cfg index b88034e..08aedd7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [metadata] -description-file = README.md +description_file = README.md diff --git a/tests/test_multi_write.py b/tests/test_multi_write.py index 2003ebf..ffbe93e 100644 --- a/tests/test_multi_write.py +++ b/tests/test_multi_write.py @@ -1,8 +1,6 @@ import os import multiprocessing as mp -import time import shutil -import random import tinymongo as tm diff --git a/tests/test_storage_backends.py b/tests/test_storage_backends.py index 7c0609f..3eb9641 100644 --- a/tests/test_storage_backends.py +++ b/tests/test_storage_backends.py @@ -1,4 +1,3 @@ -import os import pytest import tinymongo as tm diff --git a/tests/test_tinymongo.py b/tests/test_tinymongo.py index 789cc46..128fe5d 100644 --- a/tests/test_tinymongo.py +++ b/tests/test_tinymongo.py @@ -89,8 +89,8 @@ def test_initialize_db(): :return: """ - tiny_client = tm.TinyMongoClient(db_name) - another_client = tm.TinyMongoClient(db_name) + tm.TinyMongoClient(db_name) + tm.TinyMongoClient(db_name) assert True @@ -431,7 +431,7 @@ def test_update_one_set(collection): """ cu = collection['tiny'].update_one({'count': 3}, {'$set': {'countStr': 'three'}}) # cu.raw_result contains the updated ids - assert len(cu.raw_result) is 1 # only one is updated + assert len(cu.raw_result) == 1 # only one is updated c = collection['tiny'].find_one({'count': 3}) assert c['countStr'] == 'three' diff --git a/tinymongo/tinymongo.py b/tinymongo/tinymongo.py index 682ca45..8e517fe 100644 --- a/tinymongo/tinymongo.py +++ b/tinymongo/tinymongo.py @@ -8,7 +8,6 @@ import logging import os from math import ceil -from operator import itemgetter from uuid import uuid1 from tinydb import Query, TinyDB, where