Skip to content

Commit 99c8b7f

Browse files
committed
Fix black formatting
Split long lines to comply with black formatter: - test_event_publisher.py: Split long print statement - test_optsdict.py: Split long OptsDict.from_dict call
1 parent 0744833 commit 99c8b7f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/pytests/functional/master/test_event_publisher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ def test_publisher_mem(publisher, publish, listeners, stop_event):
190190
# except Exception as exc:
191191
# log.exception("WTF")
192192
finally:
193-
print(f"*** PEAK MEMORY: {max_mem:.2f} MB (increase: {max_mem - baseline:.2f} MB) ***\n")
193+
print(
194+
f"*** PEAK MEMORY: {max_mem:.2f} MB (increase: {max_mem - baseline:.2f} MB) ***\n"
195+
)
194196
log.info("test_publisher_mem finished succesfully")
195197
stop_event.clear()

tests/pytests/unit/utils/test_optsdict.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ def test_multiple_mutations_tracked(self):
305305

306306
def test_shared_tracker_across_hierarchy(self):
307307
"""Test that child opts share parent's tracker."""
308-
parent = OptsDict.from_dict({"test": False, "saltenv": "base"}, track_mutations=True, name="parent")
308+
parent = OptsDict.from_dict(
309+
{"test": False, "saltenv": "base"}, track_mutations=True, name="parent"
310+
)
309311
child = OptsDict.from_parent(parent, name="child")
310312

311313
parent["test"] = True

0 commit comments

Comments
 (0)