summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <wohali@users.noreply.github.com>2020-01-21 21:11:30 +0000
committerGitHub <noreply@github.com>2020-01-21 21:11:30 +0000
commit3c2eccc176e64812ab7b09c4a39c12b50aeac141 (patch)
tree3cdbb221c3f552482b91f8259a0fd877df6ba325
parent35b9d4585a5642ed60607b65746d855acbf491a2 (diff)
downloadcouchdb-3c2eccc176e64812ab7b09c4a39c12b50aeac141.tar.gz
Python black cleanups (#2477)
-rwxr-xr-xbuild-aux/show-test-results.py2
-rw-r--r--src/mango/test/15-execution-stats-test.py5
-rw-r--r--src/mango/test/21-empty-selector-tests.py1
3 files changed, 6 insertions, 2 deletions
diff --git a/build-aux/show-test-results.py b/build-aux/show-test-results.py
index c465fcf8a..c76a88409 100755
--- a/build-aux/show-test-results.py
+++ b/build-aux/show-test-results.py
@@ -12,7 +12,7 @@ TEST_COLLECTIONS = {
"EUnit": "src/**/.eunit/*.xml",
"EXUnit": "_build/integration/lib/couchdbtest/*.xml",
"Mango": "src/mango/*.xml",
- "JavaScript": "test/javascript/*.xml"
+ "JavaScript": "test/javascript/*.xml",
}
diff --git a/src/mango/test/15-execution-stats-test.py b/src/mango/test/15-execution-stats-test.py
index d3687f8c8..537a19add 100644
--- a/src/mango/test/15-execution-stats-test.py
+++ b/src/mango/test/15-execution-stats-test.py
@@ -54,10 +54,13 @@ class ExecutionStatsTests(mango.UserDocsTests):
self.assertEqual(resp["execution_stats"]["results_returned"], len(resp["docs"]))
def test_no_matches_index_scan(self):
- resp = self.db.find({"age": {"$lt": 35}, "nomatch": "me"}, return_raw=True, executionStats=True)
+ resp = self.db.find(
+ {"age": {"$lt": 35}, "nomatch": "me"}, return_raw=True, executionStats=True
+ )
self.assertEqual(resp["execution_stats"]["total_docs_examined"], 3)
self.assertEqual(resp["execution_stats"]["results_returned"], 0)
+
@unittest.skipUnless(mango.has_text_service(), "requires text service")
class ExecutionStatsTests_Text(mango.UserDocsTextTests):
def test_simple_text_index(self):
diff --git a/src/mango/test/21-empty-selector-tests.py b/src/mango/test/21-empty-selector-tests.py
index fda18f6e4..beb222c85 100644
--- a/src/mango/test/21-empty-selector-tests.py
+++ b/src/mango/test/21-empty-selector-tests.py
@@ -63,6 +63,7 @@ class EmptySelectorNoIndexTests(
):
pass
+
@unittest.skipUnless(mango.has_text_service(), "requires text service")
class EmptySelectorTextTests(make_empty_selector_suite(mango.UserDocsTextTests)):
pass