forked from ethereum/execution-spec-tests
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Abstract fixture type collection; Parametrize tests over fi…
…xture formats; Per-format sub-folder output (ethereum#358) * tools: Move fixture collector to spec * refactor: Fixtures collector * all: remove `BaseTestConfig` * fix: all filler tests * docs: update * tox: spelling * feat: Parametrize the supported fixture types for each test type * fix: many tests * fix: remaining tests * fix: fixture name case * fix: Indirect parametrize using fixture format * feat: Dynamic generation of spec test fixtures * fix: type-checking * fix: imports * feat(pytest): allow filtering by fixture format via pytest mark (#12) * feat(pytest): allow filtering by fixture format via pytest mark * feat(fw): give unset fixture format a more verbose name * feat(pytest): only paramatrize post-merge forks with hive format (#13) * feat(pytest): remove items which are pre-merge and have hive format * chore: make exception string clearer; fix whitespace * fix(pytest): test_filler: remove `enable_hive` completely * fix: Remove unused `STATE_TEST_HIVE` --------- Co-authored-by: danceratopz <danceratopz@gmail.com>
- Loading branch information
1 parent
cf2cf3e
commit 169066b
Showing
21 changed files
with
910 additions
and
605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
""" | ||
Test spec definitions and utilities. | ||
""" | ||
from .base.base_test import BaseFixture, BaseTest, BaseTestConfig, TestSpec, verify_post_alloc | ||
from typing import List, Type | ||
|
||
from .base.base_test import BaseFixture, BaseTest, TestSpec, verify_post_alloc | ||
from .blockchain.blockchain_test import BlockchainTest, BlockchainTestFiller, BlockchainTestSpec | ||
from .fixture_collector import FixtureCollector, TestInfo | ||
from .state.state_test import StateTest, StateTestFiller, StateTestSpec | ||
|
||
SPEC_TYPES: List[Type[BaseTest]] = [BlockchainTest, StateTest] | ||
|
||
__all__ = ( | ||
"SPEC_TYPES", | ||
"BaseFixture", | ||
"BaseTest", | ||
"BaseTestConfig", | ||
"BlockchainTest", | ||
"BlockchainTestFiller", | ||
"BlockchainTestSpec", | ||
"FixtureCollector", | ||
"StateTest", | ||
"StateTestFiller", | ||
"StateTestSpec", | ||
"TestInfo", | ||
"TestSpec", | ||
"verify_post_alloc", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.