summaryrefslogtreecommitdiff
path: root/src/mango
diff options
context:
space:
mode:
authorGabor Pali <gabor.pali@ibm.com>2023-02-02 17:31:45 +0100
committerNick Vatamaniuc <nickva@users.noreply.github.com>2023-02-02 12:12:43 -0500
commit832f58a7a3f996ad3235fff912ecd91a570761ee (patch)
treedd77e3fefcb5d49b1082c92fd1e182b64440592b /src/mango
parenta7551aac22674627ef23bcb30b6dcc51593883ef (diff)
downloadcouchdb-832f58a7a3f996ad3235fff912ecd91a570761ee.tar.gz
Employ `make python-black-update`
Diffstat (limited to 'src/mango')
-rw-r--r--src/mango/test/06-text-default-field-test.py3
-rw-r--r--src/mango/test/07-text-custom-field-list-test.py2
-rw-r--r--src/mango/test/user_docs.py2
3 files changed, 1 insertions, 6 deletions
diff --git a/src/mango/test/06-text-default-field-test.py b/src/mango/test/06-text-default-field-test.py
index 7fdbd747d..1e88967f2 100644
--- a/src/mango/test/06-text-default-field-test.py
+++ b/src/mango/test/06-text-default-field-test.py
@@ -16,7 +16,6 @@ import unittest
@unittest.skipUnless(mango.has_text_service(), "requires text service")
class NoDefaultFieldTest(mango.UserDocsTextTests):
-
DEFAULT_FIELD = False
def test_basic(self):
@@ -32,7 +31,6 @@ class NoDefaultFieldTest(mango.UserDocsTextTests):
@unittest.skipUnless(mango.has_text_service(), "requires text service")
class NoDefaultFieldWithAnalyzer(mango.UserDocsTextTests):
-
DEFAULT_FIELD = {"enabled": False, "analyzer": "keyword"}
def test_basic(self):
@@ -47,7 +45,6 @@ class NoDefaultFieldWithAnalyzer(mango.UserDocsTextTests):
@unittest.skipUnless(mango.has_text_service(), "requires text service")
class DefaultFieldWithCustomAnalyzer(mango.UserDocsTextTests):
-
DEFAULT_FIELD = {"enabled": True, "analyzer": "keyword"}
def test_basic(self):
diff --git a/src/mango/test/07-text-custom-field-list-test.py b/src/mango/test/07-text-custom-field-list-test.py
index 8514111c4..36b23a7f6 100644
--- a/src/mango/test/07-text-custom-field-list-test.py
+++ b/src/mango/test/07-text-custom-field-list-test.py
@@ -17,7 +17,6 @@ import user_docs
@unittest.skipUnless(mango.has_text_service(), "requires text service")
class CustomFieldsTest(mango.UserDocsTextTests):
-
FIELDS = [
{"name": "favorites.[]", "type": "string"},
{"name": "manager", "type": "boolean"},
@@ -163,7 +162,6 @@ class CustomFieldsTest(mango.UserDocsTextTests):
@unittest.skipUnless(mango.has_text_service(), "requires text service")
class CustomFieldsExistsTest(mango.UserDocsTextTests):
-
FIELDS = [
{"name": "exists_field", "type": "string"},
{"name": "exists_array.[]", "type": "string"},
diff --git a/src/mango/test/user_docs.py b/src/mango/test/user_docs.py
index 8f0ed2e04..4f06e0342 100644
--- a/src/mango/test/user_docs.py
+++ b/src/mango/test/user_docs.py
@@ -89,7 +89,7 @@ def add_view_indexes(db, kwargs):
(["twitter"], "twitter"),
(["ordered"], "ordered"),
]
- for (idx, name) in indexes:
+ for idx, name in indexes:
assert db.create_index(idx, name=name, ddoc=name) is True