Skip to content

Commit

Permalink
Employ make python-black-update
Browse files Browse the repository at this point in the history
  • Loading branch information
pgj authored and nickva committed Feb 2, 2023
1 parent a7551aa commit 832f58a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build-aux/show-test-results.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def _attrs(elem):
ret = {}
for (k, v) in elem.attributes.items():
for k, v in elem.attributes.items():
ret[k.lower()] = v
return ret

Expand Down Expand Up @@ -381,7 +381,7 @@ def main():
args.collection = ["eunit", "exunit", "mango", "javascript"]

collections = []
for (name, pattern) in TEST_COLLECTIONS.items():
for name, pattern in TEST_COLLECTIONS.items():
if name.lower() not in args.collection:
continue
collections.append(TestCollection(name, pattern))
Expand Down
2 changes: 0 additions & 2 deletions dev/run
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ def boot_haproxy(ctx):


def hack_default_ini(ctx, node, contents):

contents = re.sub(
"^\[httpd\]$",
"[httpd]\nenable = true",
Expand Down Expand Up @@ -594,7 +593,6 @@ def check_node_alive(url):


def set_boot_env(ctx):

# fudge fauxton path
if os.path.exists("src/fauxton/dist/release"):
fauxton_root = "src/fauxton/dist/release"
Expand Down
2 changes: 0 additions & 2 deletions src/docs/ext/configdomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def add_target_and_index(self, name, sig, signode):


class ConfigIndex(Index):

name = "ref"
localname = "Configuration Quick Reference"
shortname = "Config Quick Reference"
Expand All @@ -79,7 +78,6 @@ def generate(self, docnames=None):


class ConfigDomain(Domain):

name = "config"
label = "CONFIG"

Expand Down
3 changes: 0 additions & 3 deletions src/mango/test/06-text-default-field-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

@unittest.skipUnless(mango.has_text_service(), "requires text service")
class NoDefaultFieldTest(mango.UserDocsTextTests):

DEFAULT_FIELD = False

def test_basic(self):
Expand All @@ -32,7 +31,6 @@ def test_other_fields_exist(self):

@unittest.skipUnless(mango.has_text_service(), "requires text service")
class NoDefaultFieldWithAnalyzer(mango.UserDocsTextTests):

DEFAULT_FIELD = {"enabled": False, "analyzer": "keyword"}

def test_basic(self):
Expand All @@ -47,7 +45,6 @@ def test_other_fields_exist(self):

@unittest.skipUnless(mango.has_text_service(), "requires text service")
class DefaultFieldWithCustomAnalyzer(mango.UserDocsTextTests):

DEFAULT_FIELD = {"enabled": True, "analyzer": "keyword"}

def test_basic(self):
Expand Down
2 changes: 0 additions & 2 deletions src/mango/test/07-text-custom-field-list-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

@unittest.skipUnless(mango.has_text_service(), "requires text service")
class CustomFieldsTest(mango.UserDocsTextTests):

FIELDS = [
{"name": "favorites.[]", "type": "string"},
{"name": "manager", "type": "boolean"},
Expand Down Expand Up @@ -163,7 +162,6 @@ def test_all_match(self):

@unittest.skipUnless(mango.has_text_service(), "requires text service")
class CustomFieldsExistsTest(mango.UserDocsTextTests):

FIELDS = [
{"name": "exists_field", "type": "string"},
{"name": "exists_array.[]", "type": "string"},
Expand Down
2 changes: 1 addition & 1 deletion src/mango/test/user_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 832f58a

Please sign in to comment.