This is an automated email from the ASF dual-hosted git repository. wohali pushed a commit to branch python-black-cleanup in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit ddf465af29bc2826572bbc3d97c036c5408bd03b Author: Joan Touzet <[email protected]> AuthorDate: Tue Jan 21 20:49:54 2020 +0000 Python black cleanups --- 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
