Skip to content

Commit

Permalink
remove hardcoded db name in query counting
Browse files Browse the repository at this point in the history
  • Loading branch information
hspandher committed Aug 5, 2015
1 parent c06f22b commit d9519b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.3',
version = '0.3.4',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = '[email protected]',
Expand Down
2 changes: 1 addition & 1 deletion test_addons/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _count(self):
"""
ignore_query = {
"command.count": {"$ne": "system.profile"},
"ns": {"$ne": "test.system.indexes"}
"ns": {"$ne": "{0}.system.indexes".format(self.db.name)}
}

count = self.db.system.profile.find(ignore_query).count()
Expand Down

0 comments on commit d9519b6

Please sign in to comment.