Skip to content

Commit

Permalink
do nothing on close connections
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekram committed Dec 4, 2018
1 parent 7b64cd5 commit b94bf18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/protean/impl/repository/dict_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,5 @@ def get_connection(self):
return database

def close_connection(self, conn):
""" Remove the dictionary database object """
del _databases[self.conn_name]
del _locks[self.conn_name]
""" Close connection does nothing on the repo """
pass
1 change: 0 additions & 1 deletion tests/core/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,3 @@ def test_close_connections(self):
""" Test closing all connections to the repository"""
assert 'default' in _databases
repo.close_connections()
assert _databases == {}

0 comments on commit b94bf18

Please sign in to comment.