Skip to content

Commit 87ef9be

Browse files
authored
fix(tests): Pytest warning on EIP-2537 tests (#590)
1 parent 2602672 commit 87ef9be

File tree

1 file changed

+6
-6
lines changed
  • tests/prague/eip2537_bls_12_381_precompiles

1 file changed

+6
-6
lines changed

tests/prague/eip2537_bls_12_381_precompiles/helpers.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def current_python_script_directory(*args: str) -> str:
1616
return os.path.join(os.path.dirname(os.path.realpath(__file__)), *args)
1717

1818

19-
class TestVector(BaseModel):
19+
class Vector(BaseModel):
2020
"""
2121
Test vector for the BLS12-381 precompiles.
2222
"""
@@ -35,7 +35,7 @@ def to_pytest_param(self):
3535
return pytest.param(self.input, self.expected, id=self.name)
3636

3737

38-
class FailTestVector(BaseModel):
38+
class FailVector(BaseModel):
3939
"""
4040
Test vector for the BLS12-381 precompiles.
4141
"""
@@ -53,15 +53,15 @@ def to_pytest_param(self):
5353
return pytest.param(self.input, id=self.name)
5454

5555

56-
class TestVectorList(RootModel):
56+
class VectorList(RootModel):
5757
"""
5858
List of test vectors for the BLS12-381 precompiles.
5959
"""
6060

61-
root: List[TestVector | FailTestVector]
61+
root: List[Vector | FailVector]
6262

6363

64-
TestVectorListAdapter = TypeAdapter(TestVectorList)
64+
VectorListAdapter = TypeAdapter(VectorList)
6565

6666

6767
def vectors_from_file(filename: str) -> List:
@@ -75,4 +75,4 @@ def vectors_from_file(filename: str) -> List:
7575
),
7676
"rb",
7777
) as f:
78-
return [v.to_pytest_param() for v in TestVectorListAdapter.validate_json(f.read()).root]
78+
return [v.to_pytest_param() for v in VectorListAdapter.validate_json(f.read()).root]

0 commit comments

Comments
 (0)