Add stats variables to Lipsum test project
This commit is contained in:
@@ -2167,15 +2167,15 @@ def testGuiEditor_Search(qtbot, monkeypatch, nwGUI, prjLipsum):
|
||||
docEditor._lastFind = None
|
||||
docEditor.replaceNext()
|
||||
assert docEditor.textCursor().selectedText() == "a"
|
||||
assert docEditor.getCursorPosition() == 92
|
||||
assert docEditor.getCursorPosition() == 83
|
||||
|
||||
# Iterate through the rest
|
||||
finds = [104, 123, 175, 197, 206, 211, 220, 238, 250, 250]
|
||||
for i in range(10):
|
||||
finds = [85, 105, 110, 141, 169, 181, 200, 252, 274, 283, 288, 297]
|
||||
for i in range(len(finds)):
|
||||
docEditor.replaceNext()
|
||||
assert docEditor.textCursor().selectedText() == "a"
|
||||
assert docEditor.getCursorPosition() == finds[i]
|
||||
assert docEditor._lastFind == (249, 250)
|
||||
assert docEditor._lastFind == (296, 297)
|
||||
|
||||
# Search for something that doesn't exist
|
||||
docSearch.searchBox.setText("x")
|
||||
|
||||
@@ -241,9 +241,9 @@ def testGuiOutline_Content(qtbot, monkeypatch, nwGUI, prjLipsum, fncPath, tstPat
|
||||
assert outlineData.fileValue.text() == "Lorem Ipsum"
|
||||
assert outlineData.itemValue.text() == "Finished"
|
||||
|
||||
assert outlineData.cCValue.text() == "230"
|
||||
assert outlineData.wCValue.text() == "40"
|
||||
assert outlineData.pCValue.text() == "3"
|
||||
assert outlineData.cCValue.text() == "259"
|
||||
assert outlineData.wCValue.text() == "44"
|
||||
assert outlineData.pCValue.text() == "5"
|
||||
|
||||
# Scene One
|
||||
selItem = outlineTree.topLevelItem(4)
|
||||
|
||||
Reference in New Issue
Block a user