Skip to content

Commit c58c6d0

Browse files
committed
Reformat using black 25.1.0
Signed-off-by: Patrick M. Niedzielski <[email protected]>
1 parent 7f167a3 commit c58c6d0

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

tests/unit/test_consumption.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def test_receiving_message_properties_success():
360360
{
361361
b"a_bool": (True, BOOL),
362362
b"test1": (b"a", CHAR),
363-
b"test5": (b"af\xC3\xA4ae", STRING),
364-
b"test6": (b"ab\0\xC3\0", BINARY),
363+
b"test5": (b"af\xc3\xa4ae", STRING),
364+
b"test6": (b"ab\0\xc3\0", BINARY),
365365
b"an_int16": (12345, SHORT),
366366
b"an_int32": (31254, INT32),
367367
b"an_int64": (54321, INT64),
@@ -396,8 +396,8 @@ def go_on(*args):
396396
assert m1.properties == {
397397
"a_bool": True,
398398
"test1": b"a",
399-
"test5": "af\xE4ae",
400-
"test6": b"ab\0\xC3\0",
399+
"test5": "af\xe4ae",
400+
"test6": b"ab\0\xc3\0",
401401
"an_int16": 12345,
402402
"an_int32": 31254,
403403
"an_int64": 54321,
@@ -465,7 +465,7 @@ def test_interface_error_on_non_utf8_string_property():
465465
b"payload1",
466466
b"1000000000003039CD8101000000270F",
467467
QUEUE_NAME + b"1",
468-
{b"prop": (b"\xC3", STRING)},
468+
{b"prop": (b"\xc3", STRING)},
469469
),
470470
],
471471
]

tests/unit/test_ext_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_process_name_override_called_correctly(monkeypatch, input, expected):
189189

190190
def test_process_name_override_non_unicode(monkeypatch):
191191
# GIVEN
192-
filename = b"/path/to/some\xFFfile.py"
192+
filename = b"/path/to/some\xfffile.py"
193193
if sys.version_info[0] > 2:
194194
monkeypatch.setattr("__main__.__file__", os.fsdecode(filename))
195195
else:

tests/unit/test_ext_session_sending_properties.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def test_put_queue_single_message_with_valid_properties():
7474
payload,
7575
properties={
7676
b"a_char": (b"a", CHAR),
77-
b"a_string": (b"af\xC3\xA4ae", STRING),
78-
b"a_binary": (b"ab\0\xC3\0", BINARY),
77+
b"a_string": (b"af\xc3\xa4ae", STRING),
78+
b"a_binary": (b"ab\0\xc3\0", BINARY),
7979
b"an_int16": (12345, SHORT),
8080
b"an_int32": (31254, INT32),
8181
b"an_int64": (54321, INT64),
@@ -89,8 +89,8 @@ def test_put_queue_single_message_with_valid_properties():
8989
properties=(
9090
{
9191
"a_char": b"a",
92-
"a_string": "af\xE4ae",
93-
"a_binary": b"ab\0\xC3\0",
92+
"a_string": "af\xe4ae",
93+
"a_binary": b"ab\0\xc3\0",
9494
"an_int16": 12345,
9595
"an_int32": 31254,
9696
"an_int64": 54321,
@@ -181,10 +181,10 @@ def test_invalid_values_for_char_property(value):
181181
@pytest.mark.parametrize(
182182
"properties, expected",
183183
[
184-
({b"test1": (b"\xC3\xA4", STRING)}, ({"test1": "\xE4"}, {"test1": STRING})),
184+
({b"test1": (b"\xc3\xa4", STRING)}, ({"test1": "\xe4"}, {"test1": STRING})),
185185
(
186-
{b"test1": (b"\xC3\xA4", BINARY)},
187-
({"test1": b"\xC3\xA4"}, {"test1": BINARY}),
186+
{b"test1": (b"\xc3\xa4", BINARY)},
187+
({"test1": b"\xc3\xa4"}, {"test1": BINARY}),
188188
),
189189
({b"a_bool": (True, BOOL)}, ({"a_bool": True}, {"a_bool": BOOL})),
190190
({b"a_char": (b"\0", CHAR)}, ({"a_char": b"\0"}, {"a_char": CHAR})),

tests/unit/test_session_sending_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ def test_session_post_property_default_types(ext):
5757
# GIVEN
5858
ext.mock_add_spec(["post"])
5959
session = make_session()
60-
properties = {"Bool": True, "Int": 65536, "Str": "\xE4"}
60+
properties = {"Bool": True, "Int": 65536, "Str": "\xe4"}
6161
merged = {
6262
b"Bool": (True, BOOL),
6363
b"Int": (65536, INT64),
64-
b"Str": (b"\xC3\xA4", STRING),
64+
b"Str": (b"\xc3\xa4", STRING),
6565
}
6666

6767
# WHEN

0 commit comments

Comments
 (0)