From 0abcbac913c20837fbe867c953291e85e6bce450 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 8 Apr 2019 10:00:00 +0200 Subject: 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 --- tests/system/suite_tools/tst_codepasting/test.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'tests/system/suite_tools/tst_codepasting/test.py') 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") -- cgit v1.2.3