Skip to content

Commit

Permalink
remove inline test
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Nov 5, 2020
1 parent f390fc8 commit 7bca1a8
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions rocksdbdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,3 @@ def __contains__(self, key):

def __repr__(self):
return f'RocksdbDict<{self.filepath}>'


if __name__ == '__main__':
import tempfile

path = tempfile.gettempdir() / Path('rocksdbdict/test')
path.mkdir(parents=True)

db = RocksdbDict(path)
for x, y in ((1, None), ('3', '4')):
db[x] = y

db = RocksdbDict(path, read_only=True)
print(list(db.keys()))
print(list(db.values()))
print(list(db.items()))
print(1 in db)
print('3' in db)
print(3 in db)

import shutil
shutil.rmtree(path)

0 comments on commit 7bca1a8

Please sign in to comment.