This repository has been archived by the owner on Jul 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test new state machine class and new chain class are well defined
- Loading branch information
1 parent
eef8272
commit ae03f0c
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pytest | ||
from eth2.beacon.chains.testnet import TestnetChain | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"chain_klass", | ||
( | ||
TestnetChain, | ||
) | ||
) | ||
def test_chain_class_well_defined(chain_klass): | ||
chain = chain_klass(None) | ||
assert chain.sm_configuration is not () |
13 changes: 13 additions & 0 deletions
13
tests/eth2/beacon/state_machines/forks/test_fork_classes.py
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pytest | ||
from eth2.beacon.state_machines.forks.xiao_long_bao import XiaoLongBaoStateMachine | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"sm_klass", | ||
( | ||
XiaoLongBaoStateMachine, | ||
) | ||
) | ||
def test_sm_class_well_defined(sm_klass): | ||
state_machine = sm_klass(chaindb=None, block=None) | ||
assert state_machine.get_block_class() |