Skip to content

Commit

Permalink
fix(tests): type
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Jun 11, 2024
1 parent abacdda commit e5794c7
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 54 deletions.
10 changes: 5 additions & 5 deletions tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1add.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -44,7 +44,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -152,7 +152,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -186,7 +186,7 @@ def test_invalid(
)
def test_gas(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -221,7 +221,7 @@ def test_gas(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -39,7 +39,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_invalid(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
10 changes: 5 additions & 5 deletions tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g1mul.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -72,7 +72,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -156,7 +156,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -190,7 +190,7 @@ def test_invalid(
)
def test_gas(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -225,7 +225,7 @@ def test_gas(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
10 changes: 5 additions & 5 deletions tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g2add.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -34,7 +34,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -158,7 +158,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -192,7 +192,7 @@ def test_invalid(
)
def test_gas(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -227,7 +227,7 @@ def test_gas(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand All @@ -24,7 +24,7 @@
@pytest.mark.parametrize("input,expected_output", vectors_from_file("multiexp_G2_bls.json"))
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -93,7 +93,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -128,7 +128,7 @@ def test_invalid(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
10 changes: 5 additions & 5 deletions tests/prague/eip2537_bls_12_381_precompiles/test_bls12_g2mul.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -83,7 +83,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -179,7 +179,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -213,7 +213,7 @@ def test_invalid(
)
def test_gas(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -248,7 +248,7 @@ def test_gas(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -60,7 +60,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -93,7 +93,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -127,7 +127,7 @@ def test_invalid(
)
def test_gas(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -162,7 +162,7 @@ def test_gas(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -48,7 +48,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -79,7 +79,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -113,7 +113,7 @@ def test_invalid(
)
def test_gas(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -148,7 +148,7 @@ def test_gas(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from ethereum_test_tools import Environment
from ethereum_test_tools import Alloc, Environment
from ethereum_test_tools import Opcodes as Op
from ethereum_test_tools import StateTestFiller, Transaction

Expand Down Expand Up @@ -39,7 +39,7 @@
)
def test_valid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -108,7 +108,7 @@ def test_valid(
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
def test_invalid(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_invalid(
)
def test_call_types(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from ethereum_test_tools import Environment, StateTestFiller, Transaction
from ethereum_test_tools import Alloc, Environment, StateTestFiller, Transaction

from .spec import FP, FP2, Scalar, Spec, ref_spec_2537

Expand Down Expand Up @@ -69,7 +69,7 @@
@pytest.mark.parametrize("expected_output,call_succeeds", [pytest.param(b"", True, id="")])
def test_precompile_before_fork(
state_test: StateTestFiller,
pre: dict,
pre: Alloc,
post: dict,
tx: Transaction,
):
Expand Down
Loading

0 comments on commit e5794c7

Please sign in to comment.