summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <joant@atypical.net>2020-04-27 12:15:51 -0400
committerJoan Touzet <joant@atypical.net>2020-04-27 13:06:15 -0400
commitcf39e2f5946933883ccf5388eb8ea9eec09a4490 (patch)
tree7ec1d754c5838fcd6dc450fe7cc27bc8c09180fc
parent7458ab3a78c18b0d8a2034c512317782830be7d9 (diff)
downloadcouchdb-3.x-sm68.tar.gz
python black cleanup3.x-sm68
-rw-r--r--src/mango/test/21-empty-selector-tests.py10
1 files 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 31ad8e645..8fd76fcd5 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):