Run black evennia

This commit is contained in:
Annikka 2026-01-13 00:05:16 -05:00
parent ed6c0b1045
commit 66748d4733
4 changed files with 12 additions and 14 deletions

View file

@ -2264,6 +2264,7 @@ class TestSystemCommands(BaseEvenniaCommandTest):
self.call(multimatch, "look", "") self.call(multimatch, "look", "")
class TestPreCmdOutputTestable(BaseEvenniaCommandTest): class TestPreCmdOutputTestable(BaseEvenniaCommandTest):
def test_pre_cmd(self): def test_pre_cmd(self):
class CmdTest(Command): class CmdTest(Command):

View file

@ -45,10 +45,7 @@ def menunode_list_reports(caller, raw_string, **kwargs):
new_report_list = report_list.filter(db_tags__db_key=kwargs["status"]) new_report_list = report_list.filter(db_tags__db_key=kwargs["status"])
# we don't filter reports if there are no reports under that filter # we don't filter reports if there are no reports under that filter
if not new_report_list: if not new_report_list:
text = _( text = _("(No {status} reports)\n" "{text}").format(status=status, text=text)
"(No {status} reports)\n"
"{text}"
).format(status=status, text=text)
else: else:
report_list = new_report_list report_list = new_report_list
text = _("Managing {status} {hub_name}").format(status=status, hub_name=hub_name) text = _("Managing {status} {hub_name}").format(status=status, hub_name=hub_name)
@ -85,10 +82,12 @@ def menunode_list_reports(caller, raw_string, **kwargs):
options.append( options.append(
{ {
"key": ( "key": (
_("|uP|nrevious {_REPORTS_PER_PAGE}").format(_REPORTS_PER_PAGE, _REPORTS_PER_PAGE), _("|uP|nrevious {_REPORTS_PER_PAGE}").format(
_REPORTS_PER_PAGE, _REPORTS_PER_PAGE
),
_("previous"), _("previous"),
_("prev"), _("prev"),
_("p") _("p"),
), ),
"goto": ( "goto": (
"menunode_list_reports", "menunode_list_reports",
@ -102,7 +101,7 @@ def menunode_list_reports(caller, raw_string, **kwargs):
"key": ( "key": (
_("|uN|next {_REPORTS_PER_PAGE}").format(_REPORTS_PER_PAGE=_REPORTS_PER_PAGE), _("|uN|next {_REPORTS_PER_PAGE}").format(_REPORTS_PER_PAGE=_REPORTS_PER_PAGE),
_("next"), _("next"),
_("n") _("n"),
), ),
"goto": ( "goto": (
"menunode_list_reports", "menunode_list_reports",
@ -151,16 +150,12 @@ def menunode_manage_report(caller, raw_string, report, **kwargs):
else: else:
about_clause = "" about_clause = ""
text = _( text = _("{message}\n" "{timestamp} by {senders}{about_clause}\n" "{tags}").format(
"{message}\n"
"{timestamp} by {senders}{about_clause}\n"
"{tags}"
).format(
message=message, message=message,
timestamp=timestamp, timestamp=timestamp,
senders=senders_str, senders=senders_str,
about_clause=about_clause, about_clause=about_clause,
tags=tags_str tags=tags_str,
) )
options = [] options = []

View file

@ -1119,6 +1119,7 @@ class TestIssue3824(BaseEvenniaTest):
self.assertIn(self.room1, objlist) self.assertIn(self.room1, objlist)
self.assertIn(self.room2, objlist) self.assertIn(self.room2, objlist)
class TestIssue3101(EvenniaCommandTest): class TestIssue3101(EvenniaCommandTest):
""" """
Spawning and using create_object should store the same `typeclass_path` if using Spawning and using create_object should store the same `typeclass_path` if using

View file

@ -93,6 +93,7 @@ class TestBatchCommandProcessor(TestCase):
[mock.call("foopath", file_ending=".ev"), mock.call("x", file_ending=".ev")], [mock.call("foopath", file_ending=".ev"), mock.call("x", file_ending=".ev")],
) )
class TestReadBatchFile(TestCase): class TestReadBatchFile(TestCase):
"""Test read_batchfile line ending normalization.""" """Test read_batchfile line ending normalization."""