aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_tools/tst_codepasting/test.py
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-04-08 10:00:00 +0200
committerRobert Loehning <robert.loehning@qt.io>2019-04-08 15:57:40 +0000
commit0abcbac913c20837fbe867c953291e85e6bce450 (patch)
tree8382711933e173cfc9cc30dbf83eef5de071ba23 /tests/system/suite_tools/tst_codepasting/test.py
parenta98c8b659a8ef2851b06fcd682620069d63c42ef (diff)
Squish: Remove checking KDE paster
The KDE paster has changed again and does no more work and will be removed completely. Change-Id: I0eb00076219559ff594671dd6b1c8de5eca22f8b Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests/system/suite_tools/tst_codepasting/test.py')
-rw-r--r--tests/system/suite_tools/tst_codepasting/test.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py
index 1a54fb8911..35f85ab948 100644
--- a/tests/system/suite_tools/tst_codepasting/test.py
+++ b/tests/system/suite_tools/tst_codepasting/test.py
@@ -34,17 +34,13 @@ def __platformToBeRunToday__():
# for all machines using the same IP-address like you.
skipPastingToPastebinCom = platform.system() not in __platformToBeRunToday__()
-NAME_KDE = "Paste.KDE.Org"
NAME_PBCOM = "Pastebin.Com"
NAME_PCXYZ = "Pastecode.Xyz"
serverProblems = "Server side problems."
def invalidPasteId(protocol):
- if protocol == NAME_KDE:
- return None
- else:
- return -1
+ return -1
def closeHTTPStatusAndPasterDialog(protocol, pasterDialog):
try:
@@ -170,7 +166,7 @@ def main():
startQC()
if not startedWithoutPluginError():
return
- protocolsToTest = [NAME_KDE, NAME_PBCOM, NAME_PCXYZ]
+ protocolsToTest = [NAME_PBCOM, NAME_PCXYZ]
sourceFile = os.path.join(os.getcwd(), "testdata", "main.cpp")
# make sure General Messages is open
openGeneralMessages()
@@ -179,10 +175,7 @@ def main():
with TestSection(protocol):
skippedPasting = True
description = "Paste from 2017-05-11"
- if protocol == NAME_KDE:
- pasteId = "pysjk6n2i"
- pastedText = readFile(os.path.join(os.getcwd(), "testdata", "main-prepasted.cpp"))
- elif skipPastingToPastebinCom and protocol == NAME_PBCOM:
+ if skipPastingToPastebinCom and protocol == NAME_PBCOM:
pasteId = "8XHP0ZgH"
pastedText = readFile(os.path.join(os.getcwd(), "testdata", "main-prepasted.cpp"))
else:
@@ -219,7 +212,7 @@ def main():
clickButton(waitForObject(":*Qt Creator.Clear_QToolButton"))
continue
test.compare(filenameCombo.currentText, "%s: %s" % (protocol, pasteId), "Verify title of editor")
- if protocol in (NAME_KDE, NAME_PBCOM) and pastedText.endswith("\n"):
+ if protocol == NAME_PBCOM and pastedText.endswith("\n"):
pastedText = pastedText[:-1]
test.compare(editor.plainText, pastedText, "Verify that pasted and fetched texts are the same")
invokeMenuItem("File", "Close All")