We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ee7d71 commit b86b9fcCopy full SHA for b86b9fc
src/pytest_plugins/execute/pre_alloc.py
@@ -548,6 +548,12 @@ def pre(
548
request: pytest.FixtureRequest,
549
) -> Generator[Alloc, None, None]:
550
"""Return default pre allocation for all tests (Empty alloc)."""
551
+ # FIXME: Static tests dont have a fork so we need to get it from the node.
552
+ actual_fork = fork
553
+ if actual_fork is None:
554
+ assert hasattr(request.node, "fork")
555
+ actual_fork = request.node.fork
556
+
557
# Record the starting balance of the sender
558
sender_test_starting_balance = eth_rpc.get_balance(sender_key)
559
0 commit comments