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/01/21 21:11:38 UTC
[couchdb] branch master updated: Python black cleanups (#2477)
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 3c2eccc Python black cleanups (#2477)
3c2eccc is described below
commit 3c2eccc176e64812ab7b09c4a39c12b50aeac141
Author: Joan Touzet <wo...@users.noreply.github.com>
AuthorDate: Tue Jan 21 21:11:30 2020 +0000
Python black cleanups (#2477)
---
build-aux/show-test-results.py | 2 +-
src/mango/test/15-execution-stats-test.py | 5 ++++-
src/mango/test/21-empty-selector-tests.py | 1 +
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/build-aux/show-test-results.py b/build-aux/show-test-results.py
index c465fcf..c76a884 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 d3687f8..537a19a 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 fda18f6..beb222c 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