Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description_file = README.md
2 changes: 0 additions & 2 deletions tests/test_multi_write.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os
import multiprocessing as mp
import time
import shutil
import random

import tinymongo as tm

Expand Down
1 change: 0 additions & 1 deletion tests/test_storage_backends.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import pytest
import tinymongo as tm

Expand Down
6 changes: 3 additions & 3 deletions tests/test_tinymongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion tinymongo/tinymongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading