You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2020/04/27 17:29:07 UTC
[couchdb] 06/07: python black cleanup
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch 3.x-backports
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 4f43adb1f9ac883a2c480eae7373b79ffb8d034e
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Mon Apr 27 12:15:51 2020 -0400
python black cleanup
---
src/mango/test/21-empty-selector-tests.py | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/mango/test/21-empty-selector-tests.py b/src/mango/test/21-empty-selector-tests.py
index 31ad8e6..8fd76fc 100644
--- a/src/mango/test/21-empty-selector-tests.py
+++ b/src/mango/test/21-empty-selector-tests.py
@@ -42,17 +42,13 @@ def make_empty_selector_suite(klass):
assert len(docs) == 0
def test_empty_array_and_with_age(self):
- resp = self.db.find(
- {"age": 22, "$and": []}, explain=True
- )
+ resp = self.db.find({"age": 22, "$and": []}, explain=True)
self.assertEqual(resp["index"]["type"], klass.INDEX_TYPE)
docs = self.db.find({"age": 22, "$and": []})
assert len(docs) == 1
def test_empty_array_all_age(self):
- resp = self.db.find(
- {"age": 22, "company": {"$all": []}}, explain=True
- )
+ resp = self.db.find({"age": 22, "company": {"$all": []}}, explain=True)
self.assertEqual(resp["index"]["type"], klass.INDEX_TYPE)
docs = self.db.find({"age": 22, "company": {"$all": []}})
assert len(docs) == 0
@@ -62,7 +58,7 @@ def make_empty_selector_suite(klass):
{"age": 22, "$and": [{"company": {"$all": []}}]}, explain=True
)
self.assertEqual(resp["index"]["type"], klass.INDEX_TYPE)
- docs = self.db.find( {"age": 22, "$and": [{"company": {"$all": []}}]})
+ docs = self.db.find({"age": 22, "$and": [{"company": {"$all": []}}]})
assert len(docs) == 0
def test_empty_arrays_complex(self):