diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-06-30 22:50:56 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-06-30 22:50:56 +0200 |
commit | 1e6456bf54bb37743d22fe564b475f10bc13281e (patch) | |
tree | 3cf0c8cb8dd3688785ff73100f8bd8af98eb3105 /tests/conftest.py | |
download | pluginbase-1e6456bf54bb37743d22fe564b475f10bc13281e.tar.gz |
Initial commit.0.1
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..9226228 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,19 @@ +import pytest + +from pluginbase import PluginBase + + +@pytest.fixture(scope='function') +def base(): + return PluginBase(package='dummy.plugins') + + +@pytest.fixture(scope='function') +def dummy_internal_name(): + return 'pluginbase._internalspace._sp7bb7d8da1d24ae5a5205609c951b8be4' + + +@pytest.fixture(scope='function') +def source(base): + return base.make_plugin_source(searchpath=['./plugins'], + identifier='demo') |