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/pytest_plugins/consume/direct/test_via_direct.py | src/pytest_plugins/consume/direct/test_via_direct.py | """
Executes a JSON test fixture directly against a client using a dedicated client
interface similar to geth's EVM 'blocktest' command.
"""
from pathlib import Path
from ethereum_test_fixtures import FixtureConsumer
from ethereum_test_fixtures.consume import TestCaseIndexFile, TestCaseStream
def test_fixture(
... | 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_engine_test/__init__.py | src/pytest_plugins/consume/hive_engine_test/__init__.py | """Hive engine test 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/spec_version_checker/spec_version_checker.py | src/pytest_plugins/spec_version_checker/spec_version_checker.py | """
A pytest plugin that checks that the spec version specified in test/filler
modules matches that of https://github.com/ethereum/EIPs.
"""
import os
import re
import textwrap
from types import ModuleType
from typing import Any, List, Optional, Set
import pytest
from _pytest.nodes import Item, Node
from _pytest.pyth... | 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/spec_version_checker/__init__.py | src/pytest_plugins/spec_version_checker/__init__.py | """
A pytest plugin that verifies the tested version of an EIP specification
against the latest version from the
[ethereum/EIPs](https://github.com/ethereum/EIPs) Github repository.
"""
| 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/help/__init__.py | src/pytest_plugins/help/__init__.py | """
Pytest plugin that prints help defined in other execution-spec-tests plugins.
"""
| 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/help/help.py | src/pytest_plugins/help/help.py | """
A small pytest plugin that shows the a concise help string that only contains
the options defined by the plugins defined in execution-spec-tests.
"""
import argparse
from pathlib import Path
import pytest
def pytest_addoption(parser: pytest.Parser) -> None:
"""Add command-line options to pytest for specific... | 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/help/tests/test_help.py | src/pytest_plugins/help/tests/test_help.py | """Test the help plugin."""
from typing import Any
import pytest
FILL_TEST_ARGS = (
"--evm-bin",
"--traces",
"--filler-path",
"--output",
"--forks",
"--fork",
"--from",
"--until",
"--help",
)
@pytest.mark.parametrize("help_flag", ["--fill-help"])
def test_local_arguments_present... | 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/pytest_hive/hive_info.py | src/pytest_plugins/pytest_hive/hive_info.py | """Hive instance information structures."""
from typing import Any, Dict, List, Optional
import yaml
from pydantic import BaseModel, Field, RootModel
from typing_extensions import Self
from ethereum_test_base_types import CamelModel
class YAMLModel(BaseModel):
"""A helper class for YAML serialization of pydant... | 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/pytest_hive/pytest_hive.py | src/pytest_plugins/pytest_hive/pytest_hive.py | """
A pytest plugin providing common functionality for Hive simulators.
Simulators using this plugin must define two pytest fixtures:
1. `test_suite_name`: The name of the test suite.
2. `test_suite_description`: The description of the test suite.
These fixtures are used when creating the hive test suite.
Log Captu... | 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/filler/pre_alloc.py | src/pytest_plugins/filler/pre_alloc.py | """Pre-alloc specifically conditioned for test filling."""
import inspect
from enum import IntEnum
from functools import cache
from hashlib import sha256
from itertools import count
from typing import Any, Iterator, List, Literal
import pytest
from pydantic import PrivateAttr
from ethereum_test_base_types 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/pytest_plugins/filler/static_filler.py | src/pytest_plugins/filler/static_filler.py | """
Static filler pytest plugin that reads test cases from static files and fills
them into test fixtures.
"""
import inspect
import itertools
import json
import warnings
from pathlib import Path
from typing import Any, Callable, Dict, Generator, List, Self, Tuple, Type
import pytest
import yaml
from _pytest.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/filler/witness.py | src/pytest_plugins/filler/witness.py | """
Pytest plugin for witness functionality.
Provides --witness command-line option that checks for the witness-filler tool
in PATH and generates execution witness data for blockchain test fixtures when
enabled.
"""
import shutil
import subprocess
from typing import Callable, List
import pytest
from ethereum_test_b... | 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/filler/eip_checklist.py | src/pytest_plugins/filler/eip_checklist.py | """
Pytest plugin for generating EIP test completion checklists.
This plugin collects checklist markers from tests and generates a filled
checklist for each EIP based on the template at
docs/writing_tests/checklist_templates/eip_testing_checklist_template.md
"""
import logging
import re
from dataclasses import datacl... | 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/filler/__init__.py | src/pytest_plugins/filler/__init__.py | """A pytest plugin to fill tests and generate JSON fixtures."""
from .fixture_output import FixtureOutput
__all__ = [
"FixtureOutput",
]
| 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/filler/fixture_output.py | src/pytest_plugins/filler/fixture_output.py | """Fixture output configuration for generated test fixtures."""
import shutil
import tarfile
from pathlib import Path
import pytest
from pydantic import BaseModel, Field
from ethereum_test_fixtures.blockchain import BlockchainEngineXFixture
class FixtureOutput(BaseModel):
"""Represents the output destination 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/filler/filler.py | src/pytest_plugins/filler/filler.py | """
Top-level pytest configuration file providing:
- Command-line options,
- Test-fixtures that can be used by all test cases,
and that modifies pytest hooks in order to fill test specs for all tests
and writes the generated fixtures to file.
"""
import configparser
import datetime
import json
import os
import warning... | 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/filler/ported_tests.py | src/pytest_plugins/filler/ported_tests.py | """
A pytest plugin that shows `ported_from` marker information.
This plugin extracts and displays information from @pytest.mark.ported_from
markers, showing either the static filler file paths or associated PR URLs.
Usage:
------
# Show static filler file paths:
# uv run fill --show-ported-from tests/
# Show PR URL... | 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/filler/tests/test_format_selector.py | src/pytest_plugins/filler/tests/test_format_selector.py | """Unit tests for the FormatSelector class."""
from typing import List, Set, Tuple
from ethereum_test_fixtures import BaseFixture, FixtureFillingPhase, LabeledFixtureFormat
from ..filler import FormatSelector, PhaseManager
class TestFormatSelector:
"""Test cases for FormatSelector class."""
def test_init(... | 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/filler/tests/test_prealloc_group.py | src/pytest_plugins/filler/tests/test_prealloc_group.py | """Test the pre_alloc_group marker functionality."""
import textwrap
from pathlib import Path
from typing import Any, ClassVar, Dict, List
from unittest.mock import Mock
import pytest
from ethereum_clis import TransitionTool
from ethereum_test_fixtures import BaseFixture, PreAllocGroups
from ethereum_test_forks impo... | 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/filler/tests/test_phase_manager.py | src/pytest_plugins/filler/tests/test_phase_manager.py | """Unit tests for the PhaseManager class."""
from typing import Any
import pytest
from ethereum_test_fixtures import FixtureFillingPhase
from ..filler import PhaseManager
class MockConfig:
"""Mock pytest config for testing."""
def __init__(
self,
generate_pre_alloc_groups: bool = False,
... | 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/filler/tests/test_filler.py | src/pytest_plugins/filler/tests/test_filler.py | """
Test the filler plugin.
"""
import configparser
import json
import os
import textwrap
from datetime import datetime
from pathlib import Path
import pytest
from ethereum_test_tools import Environment
from ethereum_clis import ExecutionSpecsTransitionTool, TransitionTool
from ..filler import default_output_directo... | 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/filler/tests/test_pre_alloc.py | src/pytest_plugins/filler/tests/test_pre_alloc.py | """Test the pre-allocation methods in the filler module."""
from itertools import count
import pytest
from ethereum_test_base_types import Address, TestPrivateKey, TestPrivateKey2
from ethereum_test_forks import Fork, Prague
from ethereum_test_types import EOA
from ethereum_test_vm import EVMCodeType
from ethereum_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/filler/tests/test_filling_session.py | src/pytest_plugins/filler/tests/test_filling_session.py | """Unit tests for the FillingSession class."""
from pathlib import Path
from typing import Any
from unittest.mock import patch
import pytest
from ethereum_test_base_types import Alloc
from ethereum_test_fixtures import (
FixtureFillingPhase,
PreAllocGroup,
PreAllocGroups,
)
from ethereum_test_forks 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/filler/tests/test_collect_only.py | src/pytest_plugins/filler/tests/test_collect_only.py | """Test the fill command's --collect-only pytest option."""
import textwrap
import pytest
test_module_dummy = textwrap.dedent(
"""\
import pytest
from ethereum_test_tools import Environment
@pytest.mark.valid_at("Istanbul")
def test_dummy_collect_only_test(state_test) -> None:
state_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/filler/tests/test_slow_marker_pre_alloc.py | src/pytest_plugins/filler/tests/test_slow_marker_pre_alloc.py | """Test automatic pre_alloc_group marker application to slow tests."""
import textwrap
from typing import Any
from ethereum_clis import TransitionTool
def test_slow_marker_gets_pre_alloc_group(pytester: Any, default_t8n: TransitionTool) -> None:
"""
Test that slow tests without benchmark marker get pre_allo... | 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/filler/tests/conftest.py | src/pytest_plugins/filler/tests/conftest.py | """Local pytest configuration for filler tests."""
import os
import sysconfig
import pytest
@pytest.fixture(autouse=True)
def monkeypatch_path_for_entry_points(
monkeypatch: pytest.MonkeyPatch,
) -> None:
"""
Monkeypatch the PATH to add the "bin" directory where entrypoints are
installed.
This ... | 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/filler/tests/test_output_directory.py | src/pytest_plugins/filler/tests/test_output_directory.py | """Test the filler plugin's output directory handling."""
from pathlib import Path
from typing import Any, Callable
from unittest.mock import patch
import pytest
from pytest import TempPathFactory
from ethereum_clis import TransitionTool
from ..fixture_output import FixtureOutput
MINIMAL_TEST_FILE_NAME = "test_exa... | 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/filler/tests/__init__.py | src/pytest_plugins/filler/tests/__init__.py | """Filler tests."""
| 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/filler/tests/test_prealloc_group_usage_example.py | src/pytest_plugins/filler/tests/test_prealloc_group_usage_example.py | """
Example usage of the pre_alloc_group marker.
This file demonstrates how tests would use the marker in practice. Note: This
is just documentation, not executable tests.
"""
import pytest
# Example 1: Test that deploys beacon root contract with hardcoded deployer
@pytest.mark.pre_alloc_group(
"separate",
... | 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/filler/tests/test_generate_all_formats.py | src/pytest_plugins/filler/tests/test_generate_all_formats.py | """Test the --generate-all-formats functionality."""
from typing import Any
from pytest_plugins.filler.fixture_output import FixtureOutput
def test_fixture_output_with_generate_all_formats() -> None:
"""
Test that FixtureOutput properly handles the should_generate_all_formats
parameter.
"""
# 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/pytest_plugins/filler/tests/test_benchmarking.py | src/pytest_plugins/filler/tests/test_benchmarking.py | """Test the benchmarking pytest plugin for gas benchmark values."""
import textwrap
from pathlib import Path
import pytest
test_module_dummy = textwrap.dedent(
"""\
import pytest
from ethereum_test_tools import Environment
@pytest.mark.valid_at("Istanbul")
def test_dummy_benchmark_test(state_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/pytest_plugins/filler/tests/test_eip_checklist.py | src/pytest_plugins/filler/tests/test_eip_checklist.py | """Test the EIP checklist plugin functionality."""
import re
import textwrap
from typing import Any
def test_eip_checklist_collection(testdir: Any) -> None:
"""Test that checklist markers are collected correctly."""
# Create the test in an EIP-specific directory
tests_dir = testdir.mkdir("tests")
pr... | 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/filler/tests/test_verify_sync_marker.py | src/pytest_plugins/filler/tests/test_verify_sync_marker.py | """Test blockchain sync fixture generation with verify_sync pytest marker."""
import textwrap
from typing import Any
from ethereum_clis import TransitionTool
test_module_with_verify_sync = textwrap.dedent(
"""\
import pytest
from ethereum_test_tools import (
Account,
BlockException,
... | 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/filler/gen_test_doc/page_props.py | src/pytest_plugins/filler/gen_test_doc/page_props.py | """
Classes and helpers used for templates, navigation menus and file output.
The dataclass fields are used to define the page properties fields which are
used in the jinja2 templates when generating site content (located in
docs/templates). The classes also define each page's navigation menu entry and
target output 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/filler/gen_test_doc/__init__.py | src/pytest_plugins/filler/gen_test_doc/__init__.py | """A pytest plugin to generate test case documentation for mkdocs."""
| 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/filler/gen_test_doc/gen_test_doc.py | src/pytest_plugins/filler/gen_test_doc/gen_test_doc.py | """
A pytest plugin that generates test case documentation for use in mkdocs.
It generates the top-level "Test Case Reference" section in EEST's mkdocs site.
Note:
----
- No output directory is specified for the generated output; file IO
occurs via the `mkdocs-gen-files` plugin. `mkdocs serve` writes intermediate
fil... | 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/custom_logging/plugin_logging.py | src/pytest_plugins/custom_logging/plugin_logging.py | """
A Pytest plugin to configure logging for pytest sessions.
Note: While pytest's builtin logging is generally amazing, it does not write
timestamps when log output is written to pytest's caplog (the captured output
for a test). And having timestamps in this output is the main use case for
adding logging to our plugi... | 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/custom_logging/__init__.py | src/pytest_plugins/custom_logging/__init__.py | """
Import the logging module content to make it available from
pytest_plugins.logging.
"""
from .plugin_logging import (
FAIL_LEVEL,
VERBOSE_LEVEL,
ColorFormatter,
EESTLogger,
LogLevel,
UTCFormatter,
configure_logging,
get_logger,
)
__all__ = [
"VERBOSE_LEVEL",
"FAIL_LEVEL",
... | 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/custom_logging/tests/test_logging.py | src/pytest_plugins/custom_logging/tests/test_logging.py | """
Tests for the logging module.
These tests verify the functionality of the custom logging system,
including both the standalone configuration and the pytest integration.
"""
import io
import logging
import re
import tempfile
from pathlib import Path
from typing import Any
from unittest.mock import MagicMock, patch... | 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/custom_logging/tests/__init__.py | src/pytest_plugins/custom_logging/tests/__init__.py | """Test package for the logging module."""
| 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/shared/execute_fill.py | src/pytest_plugins/shared/execute_fill.py | """
Shared pytest fixtures and hooks for EEST generation modes (fill and execute).
"""
from typing import List
import pytest
from ethereum_test_execution import BaseExecute, LabeledExecuteFormat
from ethereum_test_fixtures import BaseFixture, LabeledFixtureFormat
from ethereum_test_specs import BaseTest
from ethereu... | 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/shared/transaction_fixtures.py | src/pytest_plugins/shared/transaction_fixtures.py | """
Pytest plugin providing default transaction fixtures for each transaction type.
Each fixture can be overridden in test files to customize transaction behavior.
"""
import pytest
from ethereum_test_base_types import AccessList
from ethereum_test_forks import Fork
from ethereum_test_tools import Opcodes as Op
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/pytest_plugins/shared/helpers.py | src/pytest_plugins/shared/helpers.py | """Helpers for pytest plugins."""
from typing import Any, Dict, Tuple, Type
import pytest
from _pytest.mark.structures import ParameterSet
from ethereum_test_execution import ExecuteFormat, LabeledExecuteFormat
from ethereum_test_fixtures import FixtureFormat, LabeledFixtureFormat
from ethereum_test_tools import Bas... | 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/shared/benchmarking.py | src/pytest_plugins/shared/benchmarking.py | """The module contains the pytest hooks for the gas benchmark values."""
import pytest
from ethereum_test_tools import Environment
from ethereum_test_types import EnvironmentDefaults
from .execute_fill import OpMode
def pytest_addoption(parser: pytest.Parser) -> None:
"""Add command line options for gas benchm... | 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/solc/solc.py | src/pytest_plugins/solc/solc.py | """Pytest plugin for configuring and verifying the solc compiler."""
import subprocess
from shutil import which
import pytest
from pytest_metadata.plugin import metadata_key
from semver import Version
SOLC_EXPECTED_MIN_VERSION: Version = Version.parse("0.8.24")
def pytest_addoption(parser: pytest.Parser) -> 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/pytest_plugins/solc/__init__.py | src/pytest_plugins/solc/__init__.py | """A pytest plugin that provides solc functionality to fill/execute tests."""
| 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/execute/recover.py | src/pytest_plugins/execute/recover.py | """Pytest plugin to recover funds from a failed remote execution."""
import pytest
from ethereum_test_base_types import Address, HexNumber
from ethereum_test_types import EOA
def pytest_addoption(parser: pytest.Parser) -> None:
"""Add command-line options to pytest."""
recover_group = parser.getgroup("execu... | 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/execute/pre_alloc.py | src/pytest_plugins/execute/pre_alloc.py | """Pre-allocation fixtures using for test filling."""
from itertools import count
from pathlib import Path
from random import randint
from typing import Any, Dict, Generator, Iterator, List, Literal, Self, Tuple
import pytest
import yaml
from pydantic import PrivateAttr
from ethereum_test_base_types import (
Byt... | 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/execute/sender.py | src/pytest_plugins/execute/sender.py | """Sender mutex class that allows sending transactions one at a time."""
from pathlib import Path
from typing import Generator, Iterator
import pytest
from filelock import FileLock
from pytest_metadata.plugin import metadata_key
from ethereum_test_base_types import Number, Wei
from ethereum_test_rpc import EthRPC
fr... | 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/execute/execute_recover.py | src/pytest_plugins/execute/execute_recover.py | """Pytest test to recover funds from a failed remote execution."""
import pytest
from ethereum_test_base_types import Address
from ethereum_test_rpc import EthRPC
from ethereum_test_types import EOA, Transaction
@pytest.fixture(scope="session")
def gas_price(eth_rpc: EthRPC) -> int:
"""Get the gas price for the... | 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/execute/__init__.py | src/pytest_plugins/execute/__init__.py | """
A pytest plugin that provides fixtures that execute tests in live
devnets/testnets.
"""
| 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/execute/execute.py | src/pytest_plugins/execute/execute.py | """
Test execution plugin for pytest, to run Ethereum tests using in live networks.
"""
import os
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Dict, Generator, List, Type
import pytest
from pytest_metadata.plugin import metadata_key
from ethereum_test_execution import Bas... | 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/execute/tests/test_pre_alloc.py | src/pytest_plugins/execute/tests/test_pre_alloc.py | """Test the pre-allocation models used during test execution."""
from typing import Any
import pytest
from ethereum_test_base_types import Address
from ..pre_alloc import AddressStubs
@pytest.mark.parametrize(
"input_value,expected",
[
pytest.param(
"{}",
AddressStubs({}),
... | 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/execute/tests/__init__.py | src/pytest_plugins/execute/tests/__init__.py | """Unit tests for the execute pytest 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/execute/eth_config/execute_eth_config.py | src/pytest_plugins/execute/eth_config/execute_eth_config.py | """
Pytest test to verify a client's configuration using `eth_config` RPC endpoint.
"""
import json
import time
from hashlib import sha256
from typing import Dict, List
import pytest
from ethereum_test_rpc import EthConfigResponse, EthRPC
from pytest_plugins.custom_logging import get_logger
from .execute_types impo... | 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/execute/eth_config/eth_config.py | src/pytest_plugins/execute/eth_config/eth_config.py | """Pytest plugin to test the `eth_config` RPC endpoint in a node."""
import re
from os.path import realpath
from pathlib import Path
from typing import Dict, List
from urllib.parse import urlparse
import pytest
import requests
from ethereum_test_rpc import EthRPC
from pytest_plugins.custom_logging import get_logger
... | 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/execute/eth_config/__init__.py | src/pytest_plugins/execute/eth_config/__init__.py | """Execute module to test the `eth_config` RPC endpoint."""
| 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/execute/eth_config/execute_types.py | src/pytest_plugins/execute/eth_config/execute_types.py | """Types used to test `eth_config`."""
from binascii import crc32
from collections import defaultdict
from functools import cached_property
from pathlib import Path
from typing import Annotated, Any, ClassVar, Dict, List, Self, Set
import yaml
from pydantic import BaseModel, BeforeValidator, Field, model_validator
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/execute/eth_config/tests/test_genesis.py | src/pytest_plugins/execute/eth_config/tests/test_genesis.py | """Test parsing a genesis file to generate a network configuration."""
from os.path import realpath
from pathlib import Path
import pytest
from ethereum_test_base_types import Hash
from ethereum_test_forks import (
BPO1,
BPO2,
BPO3,
BPO4,
BPO5,
Berlin,
Byzantium,
Cancun,
Constanti... | 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/execute/eth_config/tests/test_execute_eth_config.py | src/pytest_plugins/execute/eth_config/tests/test_execute_eth_config.py | """Unit tests for the `eth_config` execute tests."""
import json
from os.path import realpath
from pathlib import Path
import pytest
import yaml
from ethereum_test_base_types import ForkHash
from ethereum_test_rpc import EthConfigResponse
from ..execute_types import NetworkConfig, NetworkConfigFile
EXPECTED_CANCUN... | 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/execute/eth_config/tests/__init__.py | src/pytest_plugins/execute/eth_config/tests/__init__.py | """Unit tests for the `eth_config` pytest plugin package."""
| 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/execute/rpc/chain_builder_eth_rpc.py | src/pytest_plugins/execute/rpc/chain_builder_eth_rpc.py | """
Chain builder Ethereum RPC that can drive the chain when new transactions are
submitted.
"""
import time
from pathlib import Path
from typing import Any, Dict, Iterator, List
from filelock import FileLock
from pydantic import RootModel
from typing_extensions import Self
from ethereum_test_base_types import HexNu... | 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/execute/rpc/remote_seed_sender.py | src/pytest_plugins/execute/rpc/remote_seed_sender.py | """Seed sender on a remote execution client."""
import pytest
from ethereum_test_base_types import Hash, Number
from ethereum_test_rpc import EthRPC
from ethereum_test_types import EOA
def pytest_addoption(parser: pytest.Parser) -> None:
"""Add command-line options to pytest."""
remote_seed_sender_group = 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/pytest_plugins/execute/rpc/hive.py | src/pytest_plugins/execute/rpc/hive.py | """Pytest plugin to run the test-execute in hive-mode."""
import io
import json
from dataclasses import asdict, replace
from pathlib import Path
from random import randint
from typing import Generator, Mapping, Tuple, cast
import pytest
from filelock import FileLock
from hive.client import Client, ClientType
from hiv... | 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/execute/rpc/__init__.py | src/pytest_plugins/execute/rpc/__init__.py | """RPC plugins to execute tests in different environments."""
| 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/execute/rpc/remote.py | src/pytest_plugins/execute/rpc/remote.py | """Pytest plugin to run the execute in remote-rpc-mode."""
from pathlib import Path
import pytest
from ethereum_test_forks import Fork
from ethereum_test_rpc import EngineRPC, EthRPC
from ethereum_test_types.chain_config_types import ChainConfigDefaults
from ..pre_alloc import AddressStubs
from .chain_builder_eth_r... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_execution/blob_transaction.py | src/ethereum_test_execution/blob_transaction.py | """Test execution format to get blobs from the execution client."""
from hashlib import sha256
from typing import ClassVar, Dict, List
from pytest import FixtureRequest
from ethereum_test_base_types import Address, Hash
from ethereum_test_base_types.base_types import Bytes
from ethereum_test_forks import Fork
from e... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_execution/__init__.py | src/ethereum_test_execution/__init__.py | """Ethereum test execution package."""
from .base import BaseExecute, ExecuteFormat, LabeledExecuteFormat
from .blob_transaction import BlobTransaction
from .transaction_post import TransactionPost
__all__ = [
"BaseExecute",
"ExecuteFormat",
"BlobTransaction",
"LabeledExecuteFormat",
"TransactionP... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_execution/base.py | src/ethereum_test_execution/base.py | """Ethereum test execution base types."""
from abc import abstractmethod
from typing import Annotated, Any, ClassVar, Dict, Type
from pydantic import PlainSerializer, PlainValidator
from pytest import FixtureRequest
from ethereum_test_base_types import CamelModel
from ethereum_test_forks import Fork
from ethereum_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/ethereum_test_execution/transaction_post.py | src/ethereum_test_execution/transaction_post.py | """Simple transaction-send then post-check execution format."""
from typing import ClassVar, List
import pytest
from pytest import FixtureRequest
from ethereum_test_base_types import Address, Alloc, Hash
from ethereum_test_forks import Fork
from ethereum_test_rpc import EngineRPC, EthRPC, SendTransactionExceptionErr... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/__init__.py | src/ethereum_test_tools/__init__.py | """
Module containing tools for generating cross-client Ethereum execution layer
tests.
"""
from ethereum_test_base_types import (
AccessList,
Account,
Address,
Bytes,
Hash,
Storage,
TestAddress,
TestAddress2,
TestPrivateKey,
TestPrivateKey2,
)
from ethereum_test_base_types.refe... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/tools_code/yul.py | src/ethereum_test_tools/tools_code/yul.py | """Yul frontend."""
import re
import warnings
from functools import cached_property
from pathlib import Path
from shutil import which
from subprocess import CompletedProcess, run
from typing import Optional, Type
from semver import Version
from typing_extensions import Self
from ethereum_test_forks import Fork
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/ethereum_test_tools/tools_code/generators.py | src/ethereum_test_tools/tools_code/generators.py | """Code generating classes and functions."""
from dataclasses import dataclass
from typing import Any, List, SupportsBytes
from typing_extensions import Self
from ethereum_test_base_types import Bytes
from ethereum_test_types import ceiling_division
from ethereum_test_vm import Bytecode, EVMCodeType
from ethereum_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/ethereum_test_tools/tools_code/__init__.py | src/ethereum_test_tools/tools_code/__init__.py | """Code related utilities and classes."""
from .generators import CalldataCase, Case, CodeGasMeasure, Conditional, Initcode, Switch, While
from .yul import Solc, Yul, YulCompiler
__all__ = (
"CalldataCase",
"Case",
"CodeGasMeasure",
"Conditional",
"Initcode",
"Solc",
"Switch",
"While",... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/tests/__init__.py | src/ethereum_test_tools/tests/__init__.py | """`ethereum_test_tools` verification tests."""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/tests/test_code.py | src/ethereum_test_tools/tests/test_code.py | """Test suite for `ethereum_test.code` module."""
from string import Template
from typing import Mapping
import pytest
from semver import Version
from ethereum_clis import TransitionTool
from ethereum_test_base_types import Account, Address, Hash, TestAddress, TestPrivateKey
from ethereum_test_fixtures import Blockc... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/utility/generators.py | src/ethereum_test_tools/utility/generators.py | """Test generator decorators."""
import json
from enum import StrEnum
from pathlib import Path
from typing import Any, Callable, Dict, Generator, List, Protocol
import pytest
from ethereum_test_base_types import Account, Address, Hash
from ethereum_test_exceptions import BlockException
from ethereum_test_forks 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/ethereum_test_tools/utility/__init__.py | src/ethereum_test_tools/utility/__init__.py | """Sub-package for utility functions and classes."""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/utility/pytest.py | src/ethereum_test_tools/utility/pytest.py | """Pytest utility functions used to write Ethereum tests."""
from typing import Any, Dict, List
import pytest
from _pytest.mark.structures import ParameterSet
class UnknownParameterInCasesError(Exception):
"""
Exception raised when a test case contains parameters that are not present
in the defaults.
... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/utility/versioning.py | src/ethereum_test_tools/utility/versioning.py | """Utility module with helper functions for versioning."""
import re
from typing import Union
from git import InvalidGitRepositoryError, Repo
def get_current_commit_hash_or_tag(repo_path: str = ".", shorten_hash: bool = False) -> str:
"""
Get the latest commit tag or commit hash from the repository.
If... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_tools/utility/tests/test_pytest.py | src/ethereum_test_tools/utility/tests/test_pytest.py | """Tests for ethereum_test_tools.utility.pytest."""
import pytest
from ethereum_test_tools import extend_with_defaults
from ethereum_test_tools.utility.pytest import UnknownParameterInCasesError
# TODO: This is from the docstring in extend_with_defaults; should be tested
# automatically
@pytest.mark.parametrize(
... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_vm/bytecode.py | src/ethereum_test_vm/bytecode.py | """Ethereum Virtual Machine bytecode primitives and utilities."""
from typing import Any, Self, SupportsBytes
from pydantic import GetCoreSchemaHandler
from pydantic_core.core_schema import (
PlainValidatorFunctionSchema,
no_info_plain_validator_function,
plain_serializer_function_ser_schema,
)
from ethe... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_vm/evm_types.py | src/ethereum_test_vm/evm_types.py | """EVM types definitions."""
from enum import Enum
class EVMCodeType(str, Enum):
"""
Enum representing the type of EVM code that is supported in a given fork.
"""
LEGACY = "legacy"
EOF_V1 = "eof_v1"
def __str__(self) -> str:
"""Return the name of the EVM code type."""
return... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_vm/opcodes.py | src/ethereum_test_vm/opcodes.py | """
Ethereum Virtual Machine opcode definitions.
Acknowledgments: The individual opcode documentation below is due to the work
by [smlXL](https://github.com/smlxl) on [evm.codes](https://www.evm.codes/),
available as open source [github.com/smlxl/
evm.codes](https://github.com/smlxl/evm.codes) - thank you! And thanks
... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | true |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_vm/helpers.py | src/ethereum_test_vm/helpers.py | """Helper functions for the EVM."""
from .bytecode import Bytecode
from .opcodes import Opcodes as Op
class MemoryVariable(Bytecode):
"""
Variable abstraction to help keep track values that are stored in memory.
To use, simply declare a variable with an unique offset that is not used
by any other va... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_vm/__init__.py | src/ethereum_test_vm/__init__.py | """Ethereum Virtual Machine related definitions and utilities."""
from .bytecode import Bytecode
from .evm_types import EVMCodeType
from .helpers import MemoryVariable, call_return_code
from .opcodes import Macro, Macros, Opcode, OpcodeCallArg, Opcodes, UndefinedOpcodes
__all__ = (
"Bytecode",
"EVMCodeType",
... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_vm/tests/test_vm.py | src/ethereum_test_vm/tests/test_vm.py | """Test suite for `ethereum_test_vm` module."""
import pytest
from ethereum_test_base_types import Address
from ..opcodes import Bytecode
from ..opcodes import Macros as Om
from ..opcodes import Opcodes as Op
@pytest.mark.parametrize(
"opcodes,expected",
[
pytest.param(Op.PUSH1(0x01), b"\x60\x01", ... | python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_vm/tests/__init__.py | src/ethereum_test_vm/tests/__init__.py | """Tests for the ethereum_test_vm package."""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/src/ethereum_test_benchmark/benchmark_code_generator.py | src/ethereum_test_benchmark/benchmark_code_generator.py | """
Benchmark code generator classes for creating
optimized bytecode patterns.
"""
from dataclasses import dataclass
from ethereum_test_base_types import Address
from ethereum_test_forks import Fork
from ethereum_test_specs.benchmark import BenchmarkCodeGenerator
from ethereum_test_types import Alloc
from ethereum_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/ethereum_test_benchmark/__init__.py | src/ethereum_test_benchmark/__init__.py | """
Benchmark code generator classes for
creating optimized bytecode patterns.
"""
from .benchmark_code_generator import (
BenchmarkCodeGenerator,
ExtCallGenerator,
JumpLoopGenerator,
)
__all__ = (
"BenchmarkCodeGenerator",
"ExtCallGenerator",
"JumpLoopGenerator",
)
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/__init__.py | tests/__init__.py | """
Cross-client test cases organized by fork. Each directory underneath `tests/`
contains test cases corresponding [to the fork](https://ethereum.org/en/history)
in which the functionality-under-test was introduced.
"""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/__init__.py | tests/static/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/__init__.py | tests/static/state_tests/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/stSStoreTest/__init__.py | tests/static/state_tests/stSStoreTest/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/stCreate2/__init__.py | tests/static/state_tests/stCreate2/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/stZeroKnowledge2/__init__.py | tests/static/state_tests/stZeroKnowledge2/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/stHomesteadSpecific/__init__.py | tests/static/state_tests/stHomesteadSpecific/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/stEIP2930/__init__.py | tests/static/state_tests/stEIP2930/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/stInitCodeTest/__init__.py | tests/static/state_tests/stInitCodeTest/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
ethereum/execution-spec-tests | https://github.com/ethereum/execution-spec-tests/blob/88e9fb8f10ed89805aa3110d0a2cd5dcadc19689/tests/static/state_tests/stMemExpandingEIP150Calls/__init__.py | tests/static/state_tests/stMemExpandingEIP150Calls/__init__.py | """Static State Tests Fillers from ethereum/tests repo."""
REFERENCE_SPEC_GIT_PATH = ""
REFERENCE_SPEC_VERSION = ""
| python | MIT | 88e9fb8f10ed89805aa3110d0a2cd5dcadc19689 | 2026-01-05T06:50:32.790998Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.