Skip to content

Commit

Permalink
fix(clis): Fix t8n instance
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Dec 20, 2024
1 parent 972d8c7 commit 4aa5c9f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/ethereum_clis/tests/test_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ def monkeypatch_path_for_entry_points(monkeypatch):
monkeypatch.setenv("PATH", f"{bin_dir}:{os.environ['PATH']}")


@pytest.mark.parametrize("t8n", [ExecutionSpecsTransitionTool()])
@pytest.fixture
def t8n(request):
"""
Instantiate the TransitionTool subclass under test.
"""
return request.param()


@pytest.mark.parametrize("t8n", [ExecutionSpecsTransitionTool], indirect=True)
@pytest.mark.parametrize("fork", [London, Istanbul])
@pytest.mark.parametrize(
"alloc,base_fee,hash",
Expand Down Expand Up @@ -142,7 +150,7 @@ def env(test_dir: str) -> Environment: # noqa: D103
return Environment.model_validate_json(f.read())


@pytest.mark.parametrize("t8n", [ExecutionSpecsTransitionTool()])
@pytest.mark.parametrize("t8n", [ExecutionSpecsTransitionTool], indirect=True)
@pytest.mark.parametrize("test_dir", os.listdir(path=FIXTURES_ROOT))
def test_evm_t8n( # noqa: D103
t8n: TransitionTool,
Expand Down

0 comments on commit 4aa5c9f

Please sign in to comment.