PY-30762: Test added

This commit is contained in:
Ilya.Kazakevich
2018-07-17 01:31:07 +03:00
parent 21439f7e57
commit 9328593cd2
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import pytest
#
@pytest.fixture
def spam():
return 1
def test_sample(spam):
spam.bit_length

View 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

View File

@@ -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")
}
}