mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
PY-43681: Drop lettuce skeletons
GitOrigin-RevId: a91c9e9dbf18fc362fa3b89ba86d299a857ce1a8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a3bd78dcdd
commit
74fb322770
@@ -1,77 +0,0 @@
|
||||
# coding=utf-8
|
||||
"""
|
||||
Lettuce terrain hooks: http://lettuce.it/reference/terrain.html
|
||||
"""
|
||||
__author__ = 'Ilya.Kazakevich'
|
||||
|
||||
|
||||
class __When(object):
|
||||
@staticmethod
|
||||
def all(function):
|
||||
"""
|
||||
Runs before/after all features, scenarios and steps
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def each_step(function):
|
||||
"""
|
||||
Runs before/after each step
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def each_scenario(function):
|
||||
"""
|
||||
Runs before/after each scenario
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def each_outline(function):
|
||||
"""
|
||||
Runs before/after each outline in scenario outline.
|
||||
Accepts scenario (object) and outline(dict) as arguments.
|
||||
Available only since 0.22
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def each_background(function):
|
||||
"""
|
||||
Runs before/after each background
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def each_feature(function):
|
||||
"""
|
||||
Runs before/after each feature
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def each_app(function):
|
||||
"""
|
||||
Runs before/after each Django app.
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def runserver(function):
|
||||
"""
|
||||
Runs before/after lettuce starts up the built-in http server.
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def handle_request(function):
|
||||
"""
|
||||
Runs before/after lettuce’s built-in HTTP server responds to a request.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
before = __When()
|
||||
after = __When()
|
||||
|
||||
@@ -13,12 +13,12 @@ class PyLineBreakpointTypeTest : PyTestCase() {
|
||||
// PY-16932
|
||||
fun testPutAtUserSkeleton() {
|
||||
val skeletonsDir = getUserSkeletonsDirectory()
|
||||
val pythonFile = skeletonsDir!!.findFileByRelativePath("lettuce/terrain.py")
|
||||
val line = 20
|
||||
val pythonFile = skeletonsDir!!.findFileByRelativePath("nose/tools/__init__.py")
|
||||
val line = 13
|
||||
|
||||
val document = FileDocumentManager.getInstance().getDocument(pythonFile!!)
|
||||
val range = TextRange.create(document!!.getLineStartOffset(line), document.getLineEndOffset(line))
|
||||
assertEquals(" pass", document.getText(range))
|
||||
assertEquals(" pass", document.getText(range))
|
||||
|
||||
assertFalse(PyLineBreakpointType().canPutAt(pythonFile, line, myFixture.project))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user