Skip to content

Commit

Permalink
Run black 24.1a1
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Dec 14, 2023
1 parent 880630f commit 1f06328
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/core/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def assert_records(records):


def test_initialization_from_ini(reset_logging, caplog, tmpdir):
ini_content = textwrap.dedent(
"""
ini_content = textwrap.dedent("""
[loggers]
keys = root
Expand All @@ -55,8 +54,7 @@ class = StreamHandler
[formatter_json]
class = dockerflow.logging.JsonLogFormatter
"""
)
""")
ini_file = tmpdir.join("logging.ini")
ini_file.write(ini_content)
logging.config.fileConfig(str(ini_file))
Expand Down Expand Up @@ -156,8 +154,7 @@ def test_ignore_json_message(caplog):


# https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=42895640
JSON_LOGGING_SCHEMA = json.loads(
"""
JSON_LOGGING_SCHEMA = json.loads("""
{
"type":"object",
"required":["Timestamp"],
Expand Down Expand Up @@ -229,7 +226,4 @@ def test_ignore_json_message(caplog):
}
}
}
""".replace(
"\\", "\\\\"
)
) # HACK: Fix escaping for easy copy/paste
""".replace("\\", "\\\\")) # HACK: Fix escaping for easy copy/paste

0 comments on commit 1f06328

Please sign in to comment.