aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2018-11-26 09:32:36 +0100
committerChristian Stenger <christian.stenger@qt.io>2018-12-11 12:45:33 +0000
commita83330ca26949264fc30a98ad7878613f52a3888 (patch)
treefaa9e6f34374c6774a26e4e7a95819cca66d527a /tests
parente61d8371fe5cf279c62582ad634162744c4e3f95 (diff)
Squish: Drop testing of pastebin.ca
Change-Id: Ideab89362bb839f27f10234d13d4cfa92b1beba6 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/system/suite_tools/tst_codepasting/test.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py
index 5a69675310..1a54fb8911 100644
--- a/tests/system/suite_tools/tst_codepasting/test.py
+++ b/tests/system/suite_tools/tst_codepasting/test.py
@@ -35,7 +35,6 @@ def __platformToBeRunToday__():
skipPastingToPastebinCom = platform.system() not in __platformToBeRunToday__()
NAME_KDE = "Paste.KDE.Org"
-NAME_PBCA = "Pastebin.Ca"
NAME_PBCOM = "Pastebin.Com"
NAME_PCXYZ = "Pastecode.Xyz"
@@ -134,16 +133,13 @@ def fetchSnippet(protocol, description, pasteId, skippedPasting):
closeHTTPStatusAndPasterDialog(protocol, ':PasteSelectDialog_CodePaster::PasteSelectDialog')
return -1
waitFor("pasteModel.rowCount() > 1", 20000)
- if (not skippedPasting and not protocol == NAME_PBCA
- and not any(map(lambda str:pasteId in str, dumpItems(pasteModel)))):
+ if (not skippedPasting and not any(map(lambda str:pasteId in str, dumpItems(pasteModel)))):
test.warning("Fetching too fast for server of %s - waiting 3s and trying to refresh." % protocol)
snooze(3)
clickButton("{text='Refresh' type='QPushButton' unnamed='1' visible='1' "
"window=':PasteSelectDialog_CodePaster::PasteSelectDialog'}")
waitFor("pasteModel.rowCount() == 1", 1000)
waitFor("pasteModel.rowCount() > 1", 20000)
- if protocol == NAME_PBCA:
- description = description[:32]
if pasteId == -1:
try:
pasteLine = filter(lambda str:description in str, dumpItems(pasteModel))[0]
@@ -155,13 +151,11 @@ def fetchSnippet(protocol, description, pasteId, skippedPasting):
else:
try:
pasteLine = filter(lambda str:pasteId in str, dumpItems(pasteModel))[0]
- if protocol in (NAME_PBCA, NAME_PBCOM):
+ if protocol == NAME_PBCOM:
test.verify(description in pasteLine,
"Verify that line in list of pastes contains the description")
except:
- if protocol == NAME_PBCA:
- test.xfail("%s does not list the pasted snippet on time" % NAME_PBCA)
- elif not skippedPasting:
+ if not skippedPasting:
test.fail("Could not find id '%s' in list of pastes from %s" % (pasteId, protocol))
foundSnippet = False
replaceEditorContent(waitForObject(":PasteSelectDialog.pasteEdit_QLineEdit"), pasteId)
@@ -176,7 +170,7 @@ def main():
startQC()
if not startedWithoutPluginError():
return
- protocolsToTest = [NAME_KDE, NAME_PBCA, NAME_PBCOM, NAME_PCXYZ]
+ protocolsToTest = [NAME_KDE, NAME_PBCOM, NAME_PCXYZ]
sourceFile = os.path.join(os.getcwd(), "testdata", "main.cpp")
# make sure General Messages is open
openGeneralMessages()