forked from pool/python-rollbar
- Update the patch according to the pending pull request
gh#rollbar/pyrollbar#346. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rollbar?expand=0&rev=22
This commit is contained in:
@@ -114,6 +114,22 @@
|
||||
|
||||
def test_filter_ip_no_user_ip(self):
|
||||
request_data = {'something': 'but no ip'}
|
||||
--- a/rollbar/test/test_scruburl_transform.py
|
||||
+++ b/rollbar/test/test_scruburl_transform.py
|
||||
@@ -1,4 +1,5 @@
|
||||
import copy
|
||||
+import six
|
||||
|
||||
from rollbar.lib import map, transforms, string_types, urlparse, parse_qs, python_major_version
|
||||
from rollbar.lib.transforms.scruburl import ScrubUrlTransform, _starts_with_auth_re
|
||||
@@ -146,5 +147,5 @@ class ScrubUrlTransformTest(BaseTest):
|
||||
self.assertNotIn('secret', result['url'][0]['link'])
|
||||
self.assertNotIn('secr3t', result['link'][0]['url'])
|
||||
self.assertNotIn('secret', result['link'][0]['url'])
|
||||
- self.assertNotRegex(result['url'][0]['link'], r'^-+$')
|
||||
- self.assertNotRegex(result['link'][0]['url'], r'^-+$')
|
||||
+ six.assertNotRegex(self, result['url'][0]['link'], r'^-+$')
|
||||
+ six.assertNotRegex(self, result['link'][0]['url'], r'^-+$')
|
||||
--- a/rollbar/test/test_serializable_transform.py
|
||||
+++ b/rollbar/test/test_serializable_transform.py
|
||||
@@ -10,6 +10,8 @@ except ImportError:
|
||||
@@ -158,3 +174,33 @@
|
||||
result = transforms.transform(start, serializable)
|
||||
- self.assertRegex(result['custom'], "<UnStringableException.*Exception.*str.*>")
|
||||
+ six.assertRegex(self, result['custom'], "<UnStringableException.*Exception.*str.*>")
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -20,7 +20,6 @@ with open(INIT_PATH) as fd:
|
||||
tests_require = [
|
||||
'webob',
|
||||
'blinker',
|
||||
- 'unittest2'
|
||||
]
|
||||
|
||||
version = sys.version_info
|
||||
@@ -78,7 +77,7 @@ setup(
|
||||
],
|
||||
install_requires=[
|
||||
'requests>=0.12.1',
|
||||
- 'six>=1.9.0'
|
||||
+ 'six>=1.14.0'
|
||||
],
|
||||
tests_require=tests_require,
|
||||
)
|
||||
--- a/shell.nix
|
||||
+++ b/shell.nix
|
||||
@@ -20,7 +20,7 @@ python = let
|
||||
};
|
||||
in python36.override { inherit packageOverrides; };
|
||||
pyrollbar = pkgs.callPackage ./. { inherit python; };
|
||||
-pyenv = python.withPackages(ps: with ps; [ pyrollbar twine unittest2 mock pyramid ]);
|
||||
+pyenv = python.withPackages(ps: with ps; [ pyrollbar twine mock pyramid ]);
|
||||
|
||||
in
|
||||
|
||||
|
Reference in New Issue
Block a user