repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/evm_bytes.py
src/cli/evm_bytes.py
"""Define an entry point wrapper for pytest.""" from dataclasses import dataclass, field from typing import Any, List import click from ethereum_test_base_types import ZeroPaddedHexNumber from ethereum_test_vm import Bytecode, Macro from ethereum_test_vm import Opcodes as Op OPCODES_WITH_EMPTY_LINES_AFTER = { O...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/modify_static_test_gas_limits.py
src/cli/modify_static_test_gas_limits.py
""" Command to scan and overwrite the static tests' gas limits to new optimized value given in the input file. """ import json import re from pathlib import Path from typing import Dict, List, Set import click import yaml from ethereum_test_base_types import EthereumTestRootModel, HexNumber, ZeroPaddedHexNumber from...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/__init__.py
src/cli/__init__.py
"""Ethereum execution spec tests command-line tools."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/order_fixtures.py
src/cli/order_fixtures.py
""" Functions and CLI interface for recursively ordering and sorting .json files. Usage Example: ```console order_fixtures -i input_dir -o output_dir ``` The CLI interface takes the paths of an input directory and an output directory. It recursively processes each .json file in the input directory and its subdire...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/extract_config.py
src/cli/extract_config.py
#!/usr/bin/env python """ CLI tool to extract client configuration files (chainspec/genesis.json) from Ethereum clients. This tool spawns an Ethereum client using Hive and extracts the generated configuration files such as /chainspec/test.json, /configs/test.cfg, or /genesis.json from the Docker container. """ import...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/compare_fixtures.py
src/cli/compare_fixtures.py
""" Compare two fixture folders and remove duplicates based on fixture hashes. This tool reads the .meta/index.json files from two fixture directories and identifies fixtures with identical hashes on a test case basis, then removes the duplicates from both of the folders. Used within the coverage workflow. """ import...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/show_pre_alloc_group_stats.py
src/cli/show_pre_alloc_group_stats.py
"""Script to display statistics about pre-allocation groups.""" from collections import defaultdict from pathlib import Path from typing import Dict, List, Set, Tuple import click from pydantic import Field from rich.console import Console from rich.table import Table from ethereum_test_base_types import CamelModel ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/check_fixtures.py
src/cli/check_fixtures.py
""" Perform sanity checks on the framework's pydantic serialization and deserialization using generated json fixtures files. """ from pathlib import Path from typing import Generator import click from rich.progress import BarColumn, Progress, TaskProgressColumn, TextColumn, TimeElapsedColumn from ethereum_test_base_...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/diff_opcode_counts.py
src/cli/diff_opcode_counts.py
#!/usr/bin/env python """ Compare opcode counts between two folders of JSON fixtures. This script crawls two folders for JSON files, parses them using the Fixtures model, and compares the opcode_count field from the info section between fixtures with the same name. """ import sys from pathlib import Path from typing ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/test_context_providers.py
src/cli/gentest/test_context_providers.py
""" Various providers which generate contexts required to create test scripts. Classes: Provider: An provider generates required context for creating a test. BlockchainTestProvider: The BlockchainTestProvider takes a transaction hash and creates required context to create a te...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/source_code_generator.py
src/cli/gentest/source_code_generator.py
""" Pytest source code generator. This module maps a test provider instance to pytest source code. """ import subprocess import sys import tempfile from pathlib import Path import jinja2 from config import AppConfig from .test_context_providers import Provider template_loader = jinja2.PackageLoader("cli.gentest")...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/cli.py
src/cli/gentest/cli.py
""" CLI interface for generating blockchain test scripts. It extracts a specified transaction and its required state from a blockchain network using the transaction hash and generates a Python test script based on that information. """ from sys import stderr from typing import TextIO import click from ethereum_test...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/request_manager.py
src/cli/gentest/request_manager.py
""" A request manager Ethereum RPC calls. The RequestManager handles transactions and block data retrieval from a remote Ethereum node, utilizing Pydantic models to define the structure of transactions and blocks. Classes: RequestManager: The main class for managing RPC requests and resp...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/__init__.py
src/cli/gentest/__init__.py
""" Generate a Python blockchain test from a transaction hash. This script can be used to generate Python source for a blockchain test case that replays a mainnet or testnet transaction from its transaction hash. Requirements: 1. Access to an archive node for the network where the transaction originates. A provi...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/test_providers.py
src/cli/gentest/test_providers.py
""" Contains various providers which generates context required to create test scripts. Classes: BlockchainTestProvider: The BlockchainTestProvider class takes information about a block, a transaction, and the associated state, and provides methods to generate ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/tests/test_cli.py
src/cli/gentest/tests/test_cli.py
"""Tests for the gentest CLI command.""" from pathlib import Path from typing import Any import pytest from click.testing import CliRunner from ethereum_test_base_types import Account from ethereum_test_tools import Environment, Storage, Transaction from ..cli import generate from ..test_context_providers import St...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/gentest/tests/__init__.py
src/cli/gentest/tests/__init__.py
"""Test cases for the `generate` CLI."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/test_order_fixtures.py
src/cli/tests/test_order_fixtures.py
"""Tests for the order_fixtures module and click CLI.""" import json from pathlib import Path from tempfile import TemporaryDirectory from typing import Any, Generator import pytest from click.testing import CliRunner from ..order_fixtures import order_fixtures, process_directory def create_temp_json_file(director...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/test_eofwrap.py
src/cli/tests/test_eofwrap.py
"""Tests for the eofwrap module and click CLI.""" from typing import Any import pytest from ethereum_test_base_types.conversions import to_hex from ethereum_test_tools import Opcodes as Op from ethereum_test_types.eof.v1 import Container from ..eofwrap import wrap_code @pytest.mark.parametrize( "code,result",...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/test_pytest_execute_command.py
src/cli/tests/test_pytest_execute_command.py
"""Tests for execute command click CLI.""" import pytest from click.testing import CliRunner from ..pytest_commands.execute import execute @pytest.fixture def runner() -> CliRunner: """Provide a Click CliRunner for invoking command-line interfaces.""" return CliRunner() def test_execute_help_shows_subcomm...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/test_evm_bytes.py
src/cli/tests/test_evm_bytes.py
"""Test suite for `cli.evm_bytes` module.""" import pytest from ethereum_test_tools import Opcodes as Op from ..evm_bytes import process_evm_bytes_string basic_vector = [ "0x60008080808061AAAA612d5ff1600055", "Op.PUSH1[0x0] + Op.DUP1 + Op.DUP1 + Op.DUP1 + Op.DUP1 + " "Op.PUSH2[0xaaaa] + Op.PUSH2[0x2d5f]...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/test_pytest_fill_command.py
src/cli/tests/test_pytest_fill_command.py
"""Tests for pytest commands (e.g., fill) click CLI.""" from pathlib import Path from tempfile import TemporaryDirectory from typing import Any, Generator import pytest from click.testing import CliRunner from pytest import MonkeyPatch import pytest_plugins.filler.filler from ..pytest_commands.fill import fill @p...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/test_fuzzer_bridge.py
src/cli/tests/test_fuzzer_bridge.py
"""Test suite for fuzzer bridge DTO parsing and conversion.""" import json from pathlib import Path from typing import Any, Dict import pytest from pydantic import ValidationError from ethereum_test_base_types import Address, HexNumber from ethereum_test_forks import Osaka from ethereum_test_tools import Account, Au...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/__init__.py
src/cli/tests/__init__.py
"""Tests for scripts and apps in `cli` ."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/tests/test_generate_all_formats.py
src/cli/tests/test_generate_all_formats.py
"""Test the --generate-all-formats CLI flag functionality.""" from unittest.mock import patch from cli.pytest_commands.fill import FillCommand def test_generate_all_formats_creates_two_phase_execution() -> None: """Test that --generate-all-formats triggers two-phase execution.""" command = FillCommand() ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fuzzer_bridge/performance_utils.py
src/cli/fuzzer_bridge/performance_utils.py
"""Performance utilities for fuzzer bridge processing.""" import json import mmap import os from functools import lru_cache from pathlib import Path from typing import Any, Dict, List, Optional try: import orjson # type: ignore # Fast JSON library (optional dependency) HAS_ORJSON = True except ImportError:...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fuzzer_bridge/cli.py
src/cli/fuzzer_bridge/cli.py
"""Command-line interface for the fuzzer bridge.""" import json import multiprocessing as mp from concurrent.futures import ProcessPoolExecutor, as_completed from functools import partial from pathlib import Path from typing import Any, Dict, Generator, Optional, Tuple import click from rich.progress import BarColumn...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fuzzer_bridge/blocktest_builder.py
src/cli/fuzzer_bridge/blocktest_builder.py
"""Build valid blocktests from fuzzer-generated transactions and pre-state.""" import json import random from pathlib import Path from typing import Any, Dict, Optional from ethereum_clis import GethTransitionTool, TransitionTool from ethereum_test_fixtures import BlockchainFixture from .converter import blockchain_...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fuzzer_bridge/models.py
src/cli/fuzzer_bridge/models.py
""" Pydantic models for fuzzer output format v2. This module defines Data Transfer Objects (DTOs) for parsing fuzzer output. These DTOs are intentionally separate from EEST domain models (Transaction, Account) to maintain clean separation between external data format and internal representation. Design Principle: - D...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fuzzer_bridge/converter.py
src/cli/fuzzer_bridge/converter.py
""" Converter module for transforming fuzzer DTOs to EEST domain models. This module performs explicit transformation from fuzzer's JSON-RPC format (captured in DTOs) to EEST's internal domain models (Transaction, Account, etc.). Key Responsibilities: 1. Field mapping (gas → gas_limit, from → sender, etc.) 2. Creatin...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fuzzer_bridge/__init__.py
src/cli/fuzzer_bridge/__init__.py
"""Fuzzer bridge for converting blocktest-fuzzer output to blocktests.""" from .blocktest_builder import BlocktestBuilder, build_blocktest_from_fuzzer __all__ = ["BlocktestBuilder", "build_blocktest_from_fuzzer"]
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fuzzer_bridge/production_test.py
src/cli/fuzzer_bridge/production_test.py
#!/usr/bin/env python """ Production-ready test suite for fuzzer bridge with geth verification. This script: 1. Loads fuzzer output 2. Converts to blockchain test 3. Generates fixtures 4. Verifies with go-ethereum 5. Reports comprehensive results """ import argparse import json import subprocess import sys import tem...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/check_eip_versions.py
src/cli/pytest_commands/check_eip_versions.py
"""CLI entry point for the EIP version checker pytest-based command.""" from typing import Any, List import click from config.check_eip_versions import CheckEipVersionsConfig from .base import PytestCommand, common_pytest_options from .processors import HelpFlagsProcessor @click.command(context_settings={"ignore_...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/checklist.py
src/cli/pytest_commands/checklist.py
"""CLI entry point for the `checklist` pytest-based command.""" from typing import Any import click from .fill import FillCommand @click.command() @click.option( "--output", "-o", type=click.Path(file_okay=False, dir_okay=True, writable=True), default="./checklists", help="Directory to output t...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/consume.py
src/cli/pytest_commands/consume.py
"""CLI entry point for the `consume` pytest-based command.""" import functools from pathlib import Path from typing import Any, Callable, List import click from .base import ArgumentProcessor, PytestCommand, common_pytest_options from .processors import ConsumeCommandProcessor, HelpFlagsProcessor, HiveEnvironmentPro...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/fill.py
src/cli/pytest_commands/fill.py
"""CLI entry point for the `fill` pytest-based command.""" from typing import Any, List import click from .base import PytestCommand, PytestExecution, common_pytest_options from .processors import HelpFlagsProcessor, StdoutFlagsProcessor, WatchFlagsProcessor from .watcher import FileWatcher class FillCommand(Pytes...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/watcher.py
src/cli/pytest_commands/watcher.py
"""File watcher implementation for --watch flag functionality.""" import os import subprocess import time from pathlib import Path from typing import Dict, List from rich.console import Console class FileWatcher: """Simple file watcher that re-runs the fill command on changes.""" def __init__(self, console...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/processors.py
src/cli/pytest_commands/processors.py
"""Argument processors for different pytest command types.""" import os import sys import warnings from typing import List import click from .base import ArgumentProcessor class HelpFlagsProcessor(ArgumentProcessor): """Processes help-related flags to provide cleaner help output.""" def __init__(self, com...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/__init__.py
src/cli/pytest_commands/__init__.py
""" CLI entry points for the main pytest-based commands provided by execution-spec-tests. These can be directly accessed in a prompt if the user has directly installed the package via: ``` python -m venv venv source venv/bin/activate pip install -e . # or pip install -e .[docs,lint,test] ``` Then, the entry points c...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/base.py
src/cli/pytest_commands/base.py
"""Base classes and utilities for pytest-based CLI commands.""" import sys from abc import ABC, abstractmethod from dataclasses import dataclass, field from os.path import realpath from pathlib import Path from typing import Any, Callable, List, Optional import click import pytest from rich.console import Console CU...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/pytest_commands/execute.py
src/cli/pytest_commands/execute.py
"""CLI entry point for the `execute` pytest-based command.""" from pathlib import Path from typing import Any, List import click from .base import PytestCommand, common_pytest_options from .processors import HelpFlagsProcessor @click.group( context_settings={ "help_option_names": ["-h", "--help"], ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/input/input_repository.py
src/cli/input/input_repository.py
"""An abstract base class for handling interactive CLI inputs.""" from abc import ABC, abstractmethod from typing import List class InputRepository(ABC): """ Abstract base class for input handling. This class defines the interface for different input types that can be swapped out. """ @abstractm...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/input/questionary_input_repository.py
src/cli/input/questionary_input_repository.py
""" Interactive CLI inputs using questionary library. See: https://questionary.readthedocs.io/. """ from questionary import checkbox, confirm, password, select, text from .input_repository import InputRepository class QuestionaryInputRepository(InputRepository): """ Repository for handling various types of ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/input/__init__.py
src/cli/input/__init__.py
"""A standard interface for interactive CLI inputs.""" from .questionary_input_repository import QuestionaryInputRepository # Instantiate the input repository input_repository = QuestionaryInputRepository() def input_text(question: str) -> str: """ Ask a simple text input question. Args: questi...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/cli.py
src/cli/eest/cli.py
""" `eest` is a CLI tool that helps with routine tasks. Invoke using `uv run eest`. """ import click from .commands import clean, info from .make.cli import make @click.group( context_settings={ "help_option_names": ["-h", "--help"], "max_content_width": 120, } ) def eest() -> None: """`...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/quotes.py
src/cli/eest/quotes.py
"""List of quotes related to system design.""" import random import textwrap make_something_great = [ "🎨 Simplicity is the ultimate sophistication. - Leonardo D.", "🖌️ Simplicity is an acquired taste. - Katharine G.", "💡 To create a memorable design you need to start with a thought that’s worth remembe...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/__init__.py
src/cli/eest/__init__.py
"""Entry point for the `eest` command line interface."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/commands/clean.py
src/cli/eest/commands/clean.py
"""Clean CLI command removes generated files and directories.""" import glob import os import shutil import click @click.command(short_help="Remove all generated files and directories.") @click.option( "--all", "all_files", is_flag=True, help="Remove the virtual environment and .tox directory as wel...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/commands/__init__.py
src/cli/eest/commands/__init__.py
""" A collection of commands supported by `eest` CLI. Run `uv run eest` for complete list. """ from .clean import clean from .info import info __all__ = ["clean", "info"]
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/commands/info.py
src/cli/eest/commands/info.py
"""Command to display EEST and system information.""" import platform import subprocess import sys import click from config.app import AppConfig from ethereum_test_tools.utility.versioning import get_current_commit_hash_or_tag def run_command(command: list[str]) -> str: """Run a CLI command and return its outp...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/make/cli.py
src/cli/eest/make/cli.py
""" The `make` CLI streamlines the process of scaffolding tasks, such as generating new test files, enabling developers to concentrate on the core aspects of specification testing. The module calls the appropriate function for the subcommand. If an invalid subcommand is chosen, it throws an error and shows a list of...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/make/__init__.py
src/cli/eest/make/__init__.py
""" Make CLI. This module provides the `make` CLI command that helps you quickly scaffold files. """ from .cli import test __all__ = ["test"]
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/make/commands/__init__.py
src/cli/eest/make/commands/__init__.py
""" Holds subcommands for the make command. New subcommands must be created as modules and exported from this package, then registered under the make command in `cli.py`. """ from .env import create_default_env from .test import test __all__ = ["test", "create_default_env"]
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/make/commands/test.py
src/cli/eest/make/commands/test.py
""" Provides a CLI command to scaffold a test file. The `test` command guides the user through a series of prompts to generate a test file based on the selected test type, fork, EIP number, and EIP name. The generated test file is saved in the appropriate directory with a rendered template using Jinja2. """ import os...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/eest/make/commands/env.py
src/cli/eest/make/commands/env.py
"""CLI commands for managing the environment file.""" import click from jinja2 import Environment, PackageLoader from config.env import ENV_PATH, Config from ...quotes import get_quote @click.command( short_help="Generate the default environment file (env.yaml).", name="env", ) def create_default_env() -> ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fillerconvert/verify_filled.py
src/cli/fillerconvert/verify_filled.py
"""Verify refilled test vs original generated test.""" import re from pathlib import Path from pydantic import BaseModel, RootModel # Define only relevant data we need to read from the files class Indexes(BaseModel): """Post Section Indexes.""" data: int gas: int value: int class PostRecord(BaseM...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/cli/fillerconvert/fillerconvert.py
src/cli/fillerconvert/fillerconvert.py
"""Simple CLI tool that reads filler files in the `ethereum/tests` format.""" import argparse from glob import glob from pathlib import Path from .verify_filled import verify_refilled def main() -> None: """Run the main function.""" parser = argparse.ArgumentParser(description="Filler parser.") parser....
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/fix_package_test_path.py
src/pytest_plugins/fix_package_test_path.py
""" Pytest plugin to fix the test IDs for all pytest command that use a command-logic test file. """ from typing import List import pytest def pytest_collection_modifyitems(items: List[pytest.Item]) -> None: """ Modify collected item names to remove the test runner function from the name. """ fo...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/__init__.py
src/pytest_plugins/__init__.py
"""Package containing pytest plugins related to test filling."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/eels_resolver.py
src/pytest_plugins/eels_resolver.py
""" Pytest plugin to help working with the `ethereum-spec-evm-resolver`. This plugin sets the `EELS_RESOLUTIONS_FILE` environment variable to the path of the `eels_resolutions.json` file in the pytest root directory. If the environment variable is already set, the plugin will not override it. """ import os import shu...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/concurrency.py
src/pytest_plugins/concurrency.py
""" Pytest plugin to create a temporary folder for the session where multi-process tests can store data that is shared between processes. The provided `session_temp_folder` fixture is used, for example, by `consume` when running hive simulators to ensure that only one `test_suite` is created (used to create tests on t...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/forks.py
src/pytest_plugins/forks/forks.py
"""Pytest plugin to enable fork range configuration for the test session.""" import itertools import re import sys import textwrap from abc import ABC, abstractmethod from dataclasses import dataclass, field from types import FunctionType from typing import Any, Callable, ClassVar, Dict, Iterable, Iterator, List, Set,...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
true
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/__init__.py
src/pytest_plugins/forks/__init__.py
""" A pytest plugin to configure the forks in the test session. It parametrizes tests based on the user-provided fork range the tests' specified validity markers. """
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/tests/test_forks.py
src/pytest_plugins/forks/tests/test_forks.py
"""Test the forks plugin.""" import pytest from ethereum_test_fixtures import LabeledFixtureFormat from ethereum_test_forks import ArrowGlacier, Fork, forks_from_until, get_deployed_forks, get_forks from ethereum_test_tools import StateTest @pytest.fixture def fork_map() -> dict[str, Fork]: """Lookup fork.name(...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/tests/test_covariant_markers.py
src/pytest_plugins/forks/tests/test_covariant_markers.py
"""Test fork covariant markers and their effect on test parametrization.""" import pytest @pytest.mark.parametrize( "test_function,outcomes,error_string", [ pytest.param( """ import pytest @pytest.mark.with_all_tx_types() @pytest.mark.valid_from("Paris"...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/tests/test_bad_command_line_options.py
src/pytest_plugins/forks/tests/test_bad_command_line_options.py
""" Test the correct error is produced with bad/invalid command-line arguments. """ import pytest invalid_cli_option_test_cases = ( ( "from_nonexistent_fork", ( ("--from", "Marge"), # codespell:ignore marge "Unsupported fork provided to --from: Marge", # codespell:ignore ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/tests/test_markers.py
src/pytest_plugins/forks/tests/test_markers.py
"""Test fork markers and their effect on test parametrization.""" from typing import List import pytest from ethereum_clis import TransitionTool def generate_test(**kwargs: str) -> str: """Generate a test function with the given fork markers.""" markers = [f"@pytest.mark.{key}({value})" for key, value in k...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/tests/test_bad_validity_markers.py
src/pytest_plugins/forks/tests/test_bad_validity_markers.py
""" Test the correct error is produced with bad/invalid validity markers. """ import pytest invalid_merge_marker = "Marge" # codespell:ignore marge invalid_validity_marker_test_cases = ( ( "too_many_valid_from_markers", ( """ import pytest @pytest.mark.valid_f...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/tests/test_fork_parametrizer_types.py
src/pytest_plugins/forks/tests/test_fork_parametrizer_types.py
"""Test the types used to parametrize forks.""" from typing import List import pytest from _pytest.mark.structures import ParameterSet from ethereum_test_forks import Frontier from ..forks import ( ForkCovariantParameter, ForkParametrizer, parameters_from_fork_parametrizer_list, ) @pytest.mark.paramet...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/forks/tests/__init__.py
src/pytest_plugins/forks/tests/__init__.py
"""Tests for the forks plugin."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/consume.py
src/pytest_plugins/consume/consume.py
""" A pytest plugin providing common functionality for consuming test fixtures. """ import re import sys import tarfile from dataclasses import dataclass from io import BytesIO from pathlib import Path from typing import Any, Generator, List, Optional, Tuple from urllib.parse import urlparse import platformdirs impor...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/__init__.py
src/pytest_plugins/consume/__init__.py
"""Pytest plugins for consume commands."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/releases.py
src/pytest_plugins/consume/releases.py
"""Procedures to consume fixtures from Github releases.""" import json import os import re from dataclasses import dataclass from datetime import datetime from pathlib import Path from typing import List from urllib.parse import urlparse import platformdirs import requests from pydantic import BaseModel, Field, RootM...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/single_test_client.py
src/pytest_plugins/consume/simulators/single_test_client.py
""" Common pytest fixtures for simulators with single-test client architecture. """ import io import json import logging from typing import Generator, Literal, cast import pytest from hive.client import Client, ClientType from hive.testing import HiveTest from ethereum_test_base_types import Number, to_json from eth...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/exceptions.py
src/pytest_plugins/consume/simulators/exceptions.py
"""Pytest plugin that defines options and fixtures for client exceptions.""" from typing import Dict, List import pytest from hive.client import ClientType from ethereum_test_exceptions import ExceptionMapper from ethereum_test_fixtures import ( BlockchainFixtureCommon, ) from .helpers.exceptions import EXCEPTI...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/timing_data.py
src/pytest_plugins/consume/simulators/timing_data.py
"""Pytest plugin that helps measure and log timing data in Hive simulators.""" from typing import Generator import pytest import rich from hive.client import Client from .helpers.timing import TimingData def pytest_addoption(parser: pytest.Parser) -> None: """Hive simulator specific consume command line option...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/__init__.py
src/pytest_plugins/consume/simulators/__init__.py
"""Consume hive simulators test functions."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/base.py
src/pytest_plugins/consume/simulators/base.py
"""Common pytest fixtures for the Hive simulators.""" from pathlib import Path from typing import Dict, Literal import pytest from hive.client import Client from ethereum_test_fixtures import ( BaseFixture, ) from ethereum_test_fixtures.consume import TestCaseIndexFile, TestCaseStream from ethereum_test_fixtures...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/test_case_description.py
src/pytest_plugins/consume/simulators/test_case_description.py
""" Pytest fixtures that help create the test case "Description" displayed in the Hive UI. """ import logging import textwrap import urllib import warnings from typing import List import pytest from hive.client import ClientType from ethereum_test_fixtures import BaseFixture from ethereum_test_fixtures.consume impor...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/rlp/conftest.py
src/pytest_plugins/consume/simulators/rlp/conftest.py
"""Pytest fixtures and classes for the `consume rlp` hive simulator.""" import io from typing import List, Mapping, cast import pytest from ethereum_test_base_types import Bytes from ethereum_test_fixtures import BlockchainFixture from ethereum_test_fixtures.consume import TestCaseIndexFile, TestCaseStream TestCase...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/rlp/__init__.py
src/pytest_plugins/consume/simulators/rlp/__init__.py
"""Consume RLP test functions."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/helpers/exceptions.py
src/pytest_plugins/consume/simulators/helpers/exceptions.py
"""Custom exceptions utilized within consume simulators.""" import pprint from typing import Dict, List, Tuple from ethereum_clis.clis.besu import BesuExceptionMapper from ethereum_clis.clis.erigon import ErigonExceptionMapper from ethereum_clis.clis.ethereumjs import EthereumJSExceptionMapper from ethereum_clis.clis...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/helpers/ruleset.py
src/pytest_plugins/consume/simulators/helpers/ruleset.py
""" Fork rules for consume hive simulators. TODO: Create the ruleset dynamically per fixture test case based on the fork. Remove this file afterwards. """ from typing import Dict, List from ethereum_test_forks import ( BPO1, BPO2, BPO3, BPO4, Amsterdam, Berlin, BerlinToLondonAt5, BPO1...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/helpers/__init__.py
src/pytest_plugins/consume/simulators/helpers/__init__.py
"""Helper classes and functions for consume hive simulators."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/helpers/timing.py
src/pytest_plugins/consume/simulators/helpers/timing.py
"""Test timing class used to time tests.""" import time from typing import Any, List, Self class TimingData: """ The times taken to perform the various steps of a test case (seconds). """ name: str start_time: float | None end_time: float | None parent: "TimingData | None" timings: "...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/engine/conftest.py
src/pytest_plugins/consume/simulators/engine/conftest.py
""" Pytest fixtures for the `consume engine` simulator. Configures the hive back-end & EL clients for each individual test execution. """ import io from typing import Mapping import pytest from hive.client import Client from ethereum_test_exceptions import ExceptionMapper from ethereum_test_fixtures import Blockcha...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/engine/__init__.py
src/pytest_plugins/consume/simulators/engine/__init__.py
"""Consume Engine test functions."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/simulator_logic/test_via_rlp.py
src/pytest_plugins/consume/simulators/simulator_logic/test_via_rlp.py
""" A hive based simulator that executes RLP-encoded blocks against clients. The simulator uses the `BlockchainFixtures` to test this against clients. Clients consume the genesis and RLP-encoded blocks from input files upon start-up. """ import logging from ethereum_test_fixtures import BlockchainFixture from ethere...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/simulator_logic/test_via_sync.py
src/pytest_plugins/consume/simulators/simulator_logic/test_via_sync.py
""" A hive based simulator that executes blocks against clients using the `engine_newPayloadV*` method from the Engine API with sync testing. The simulator uses the `BlockchainEngineSyncFixtures` to test against clients with client synchronization. This simulator: 1. Spins up two clients: one as the client under test ...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/simulator_logic/__init__.py
src/pytest_plugins/consume/simulators/simulator_logic/__init__.py
"""Defines the Pytest test functions used by Hive Consume Simulators."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/simulator_logic/test_via_engine.py
src/pytest_plugins/consume/simulators/simulator_logic/test_via_engine.py
""" A hive based simulator that executes blocks against clients using the `engine_newPayloadVX` method from the Engine API. The simulator uses the `BlockchainEngineFixtures` to test against clients. Each `engine_newPayloadVX` is verified against the appropriate VALID/INVALID responses. """ import time from ethereum_...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/sync/conftest.py
src/pytest_plugins/consume/simulators/sync/conftest.py
""" Pytest fixtures for the `consume sync` simulator. Configures the hive back-end & EL clients for each individual test execution. """ import io import json from typing import Dict, Generator, Mapping, cast import pytest from hive.client import Client, ClientType from hive.testing import HiveTest from ethereum_tes...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/simulators/sync/__init__.py
src/pytest_plugins/consume/simulators/sync/__init__.py
"""Consume Sync test functions."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/tests/test_consume_args.py
src/pytest_plugins/consume/tests/test_consume_args.py
"""Test the consume plugins with various cli arguments.""" import re import shutil from pathlib import Path from typing import List import pytest from filelock import FileLock from pytest import Pytester, TempPathFactory from ethereum_clis import TransitionTool MINIMAL_TEST_FILE_NAME = "test_example.py" MINIMAL_TES...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/tests/test_releases.py
src/pytest_plugins/consume/tests/test_releases.py
"""Test release parsing given the github repository release JSON data.""" from os.path import realpath from pathlib import Path from typing import List import pytest from ..releases import ( ReleaseInformation, get_release_url_from_release_information, parse_release_information_from_file, ) CURRENT_FILE...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/tests/__init__.py
src/pytest_plugins/consume/tests/__init__.py
"""Tests for the consume plugin."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/tests/test_fixtures_source_input_types.py
src/pytest_plugins/consume/tests/test_fixtures_source_input_types.py
"""Test the simplified consume behavior for different input types.""" from pathlib import Path from unittest.mock import MagicMock, patch from ..consume import CACHED_DOWNLOADS_DIRECTORY, FixturesSource class TestSimplifiedConsumeBehavior: """Test suite for the simplified consume behavior.""" def test_fixt...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/hive_simulators_reorg/__init__.py
src/pytest_plugins/consume/hive_simulators_reorg/__init__.py
"""Hive simulators reorganization consumer plugin."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/direct/conftest.py
src/pytest_plugins/consume/direct/conftest.py
""" A pytest plugin that configures the consume command to act as a test runner for "direct" client fixture consumer interfaces. For example, via go-ethereum's `evm blocktest` or `evm statetest` commands. """ import json import tempfile import warnings from pathlib import Path from typing import Any, Generator impor...
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false
ethereum/execution-spec-tests
https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/pytest_plugins/consume/direct/__init__.py
src/pytest_plugins/consume/direct/__init__.py
"""Consume direct test functions."""
python
MIT
88e9fb8f10ed89805aa3110d0a2cd5dcadc19689
2026-01-05T06:50:32.790998Z
false