mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
PY-30762: Test added
This commit is contained in:
10
python/testData/testCompletion/test_for_rename.after.py.txt
Normal file
10
python/testData/testCompletion/test_for_rename.after.py.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
import pytest
|
||||
|
||||
#
|
||||
@pytest.fixture
|
||||
def spam():
|
||||
return 1
|
||||
|
||||
|
||||
def test_sample(spam):
|
||||
spam.bit_length
|
||||
10
python/testData/testCompletion/test_for_rename.py
Normal file
10
python/testData/testCompletion/test_for_rename.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import pytest
|
||||
|
||||
#
|
||||
@pytest.fixture
|
||||
def <caret>my_rename_fixture():
|
||||
return 1
|
||||
|
||||
|
||||
def test_sample(my_rename_fixture):
|
||||
my_rename_fixture.bit_length
|
||||
@@ -37,4 +37,10 @@ class PyTestFixtureAndParametrizedTest : PyTestCase() {
|
||||
myFixture.completeBasicAllCarets('\t')
|
||||
myFixture.checkResultByFile("after_test_test.txt")
|
||||
}
|
||||
|
||||
fun testRename() {
|
||||
myFixture.configureByFile("test_for_rename.py")
|
||||
myFixture.renameElementAtCaret("spam")
|
||||
myFixture.checkResultByFile("test_for_rename.after.py.txt")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user