mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[python] PY-54771 Suggest fixtures in @pytest.mark.usefixtures("")
Merge-request: IJ-MR-173095 Merged-by: Morgan Bartholomew <morgan.bartholomew@jetbrains.com> GitOrigin-RevId: f4a8479b755d71cd2932176acce98f4d2f8aaba5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e8e0cbb5b8
commit
c5c65112cc
@@ -0,0 +1,11 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def my_fixture():
|
||||
return True
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("<caret>")
|
||||
def test_abc():
|
||||
...
|
||||
@@ -0,0 +1,12 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def my_fixture():
|
||||
return True
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("<caret>")
|
||||
class TestSuite:
|
||||
def test_abc(self):
|
||||
...
|
||||
@@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def my_fixture():
|
||||
return True
|
||||
|
||||
|
||||
# Module-level usefixtures via pytestmark
|
||||
pytestmark = pytest.mark.usefixtures("<caret>")
|
||||
|
||||
def test_abc():
|
||||
...
|
||||
Reference in New Issue
Block a user