Skip to content

Commit e4d1630

Browse files
committed
chore: fix lint errors
1 parent 83c00dd commit e4d1630

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
class CapturedRequestLog:
3434
"""Log of requests and responses for snapshot assertions.
35-
35+
3636
The log captures the raw bytes of each request and response along with
3737
a label indicating the direction of the message.
3838
"""
@@ -47,7 +47,7 @@ def add_log_entry(self, label: str, data: bytes) -> None:
4747

4848
def __repr__(self):
4949
"""Return a string representation of the log entries.
50-
50+
5151
This assumes that the client will behave in a request-response manner,
5252
so each request is followed by a response. If a test uses non-deterministic
5353
message order, this may not be accurate and the test would need to decode
@@ -64,6 +64,8 @@ def _hexdump(self, data: bytes, bytes_per_line: int = 16) -> list[str]:
6464
6565
This makes the packets easier to read and compare in test snapshots.
6666
67+
68+
6769
Args:
6870
data: The bytes object to print.
6971
bytes_per_line: The number of bytes to display per line (default is 16).
@@ -92,7 +94,7 @@ def to_printable_ascii(byte_val):
9294
@pytest.fixture
9395
def deterministic_message_fixtures() -> Generator[None, None, None]:
9496
"""Fixture to use predictable get_next_int and timestamp values for each test.
95-
97+
9698
This test mocks out the functions used to generate requests that have some
9799
entropy such as the nonces, timestamps, and request IDs. This makes the
98100
generated messages deterministic so we can snapshot them in a test.

0 commit comments

Comments
 (0)