move out spec state test deco

This commit is contained in:
protolambda 2019-05-06 16:22:51 +02:00
parent a8d8da25fd
commit dcedfc350a
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
from tests.utils import spectest
from tests.context import with_state
# shorthand for decorating @with_state @spectest()
def spec_state_test(fn):
return with_state(spectest()(fn))