Skip to content

Commit

Permalink
chore(tests): improve fixture docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Jan 22, 2025
1 parent 5424d1b commit 7270a51
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@

@pytest.fixture
def block_body_extra_requests(fork: Fork, invalid_request_data: bytes) -> List[bytes]:
"""List of requests that overwrite the requests in the header. None by default."""
"""
Create a request with an invalid type for the fork.
This overrides the default fixture and its behavior defined in conftest.py.
"""
invalid_request_type = fork.max_request_type() + 1
return [bytes([invalid_request_type]) + invalid_request_data]

Expand Down

0 comments on commit 7270a51

Please sign in to comment.