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