diff options
author | Joan Touzet <wohali@users.noreply.github.com> | 2020-01-21 21:11:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 21:11:30 +0000 |
commit | 3c2eccc176e64812ab7b09c4a39c12b50aeac141 (patch) | |
tree | 3cdbb221c3f552482b91f8259a0fd877df6ba325 | |
parent | 35b9d4585a5642ed60607b65746d855acbf491a2 (diff) | |
download | couchdb-3c2eccc176e64812ab7b09c4a39c12b50aeac141.tar.gz |
Python black cleanups (#2477)
-rwxr-xr-x | build-aux/show-test-results.py | 2 | ||||
-rw-r--r-- | src/mango/test/15-execution-stats-test.py | 5 | ||||
-rw-r--r-- | 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 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 |