From dcedfc350a54e0cad920f1df5dd7ff0f69e4425a Mon Sep 17 00:00:00 2001 From: protolambda Date: Mon, 6 May 2019 16:22:51 +0200 Subject: [PATCH] move out spec state test deco --- .../pyspec/tests/block_processing/block_test_helpers.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test_libs/pyspec/tests/block_processing/block_test_helpers.py diff --git a/test_libs/pyspec/tests/block_processing/block_test_helpers.py b/test_libs/pyspec/tests/block_processing/block_test_helpers.py new file mode 100644 index 000000000..71b9fc250 --- /dev/null +++ b/test_libs/pyspec/tests/block_processing/block_test_helpers.py @@ -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))