Expose `tractor_test` in the same way as `trio`

expose_tractor_test
Tyler Goodlet 2018-11-26 11:26:04 -05:00
parent 0879150399
commit 512a2f25a2
3 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import random
import pytest import pytest
import tractor import tractor
from tractor._tractor_test import tractor_test from tractor.testing import tractor_test
pytest_plugins = ['pytester'] pytest_plugins = ['pytester']

View File

@ -0,0 +1 @@
from ._tractor_test import tractor_test

View File

@ -1,7 +1,10 @@
import inspect import inspect
from functools import partial, wraps from functools import partial, wraps
from . import run from .. import run
__all__ = ['tractor_test']
def tractor_test(fn): def tractor_test(fn):