Tests run with both spec versions

This commit is contained in:
Carl Beekhuizen 2019-05-31 13:08:42 +02:00
parent 9e8a969f22
commit 92916e5383
No known key found for this signature in database
GPG Key ID: D05CA176D0020646
1 changed files with 10 additions and 1 deletions

View File

@ -110,4 +110,13 @@ def with_phase1(fn):
return entry
with_all_phases = with_phase0
def with_all_phases(fn):
"""
Decorator to run everything with all availible spec phases
"""
def entry(*args, **kw):
kw['spec'] = spec_phase0
fn(*args, **kw)
kw['spec'] = spec_phase1
return fn(*args, **kw)
return entry