force-add in phase0 in test context, since state creation is not independent yet

This commit is contained in:
protolambda 2020-01-05 23:51:02 +01:00
parent 752eeecaf4
commit bf86a716ee
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 4 additions and 0 deletions

View File

@ -236,6 +236,10 @@ def with_phases(phases, other_phases=None):
if other_phases is not None:
available_phases += set(other_phases)
# TODO: test state is dependent on phase0 but is immediately transitioned to phase1.
# A new state-creation helper for phase 1 may be in place, and then phase1+ tests can run without phase0
available_phases.add('phase0')
phase_dir = {}
if 'phase0' in available_phases:
phase_dir['phase0'] = spec_phase0