mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Add tests to find pytest fixtures from external plugins
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
from pytest import fixture
|
||||
|
||||
|
||||
@fixture()
|
||||
def admin_user():
|
||||
pass
|
||||
18
test/examples/pytest_plugin_package/pytest_plugin/plugin.py
Normal file
18
test/examples/pytest_plugin_package/pytest_plugin/plugin.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import pytest
|
||||
from pytest import fixture
|
||||
|
||||
|
||||
from pytest_plugin.fixtures import admin_user # noqa
|
||||
|
||||
|
||||
class Client:
|
||||
def login(self, **credentials):
|
||||
...
|
||||
|
||||
def logout(self):
|
||||
...
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def admin_client():
|
||||
return Client()
|
||||
Reference in New Issue
Block a user