##// END OF EJS Templates
integrations: fixed code for python3
super-admin -
r5064:9a69dbc2 default
parent child Browse files
Show More
@@ -36,7 +36,7 b' class ValidIntegrationPredicate(object):'
36 36 self.val = val
37 37
38 38 def text(self):
39 return 'valid_integration_route = %s' % self.val
39 return f'valid_integration_route = {self.val}'
40 40
41 41 phash = text
42 42
@@ -74,7 +74,7 b' def _post_integration_test_helper(app, u'
74 74 ('__end__', 'settings:mapping'),
75 75 ]
76 76 errors_response = app.post(url, form_data)
77 assert 'Errors exist' in errors_response.body
77 assert 'Errors exist' in errors_response.text
78 78
79 79 form_data[-2] = ('test_string_field', 'data!')
80 80 assert Session().query(Integration).count() == 0
@@ -23,7 +23,9 b' import string'
23 23 import collections
24 24 import logging
25 25 import requests
26 import urllib.request, urllib.parse, urllib.error
26 import urllib.request
27 import urllib.parse
28 import urllib.error
27 29 from requests.adapters import HTTPAdapter
28 30 from requests.packages.urllib3.util.retry import Retry
29 31
@@ -266,7 +266,7 b' class IntegrationSettingsViewBase(BaseAp'
266 266 """
267 267 _ = self.request.translate
268 268
269 controls = self.request.POST.items()
269 controls = list(self.request.POST.items())
270 270 pstruct = peppercorn.parse(controls)
271 271
272 272 if self.integration and pstruct.get('delete'):
General Comments 0
You need to be logged in to leave comments. Login now