8000 python 2 test lint · pony-lab/firebase-admin-python@318ebc7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 318ebc7

Browse files
committed
python 2 test lint
1 parent 181d4c0 commit 318ebc7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

firebase_admin/dynamic_links.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ def __init__(self, app):
114114

115115
def _populated_request(self, url, options):
116116
days = options.duration_days
117+
# This is due to six.urllib_parse mistaken error for python 2
117118
#pylint: disable=too-many-function-args
118-
# This is due to six.urllib_parse incompatibility
119+
# Complaints about the named second argument needed to replace "/"
119120
#pylint: disable=redundant-keyword-arg
120121
url_quoted = urllib_parse.quote(url, safe="")
121122
#pylint: enable=redundant-keyword-arg

tests/test_dynamic_links.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ def test_invalid_event_stats_list(self, arg):
196196
with pytest.raises(ValueError) as excinfo:
197197
dynamic_links.LinkStats(arg)
198198
assert'Must be a list or tuple' in str(excinfo.value)
199-
200-
@pytest.mark.parametrize('arg', [list([1,2]), list('asdf'), tuple([1,2])])
199+
200+
@pytest.mark.parametrize('arg', [list([1, 2]), list('asdf'), tuple([1, 2])])
201201
def test_empty_event_stats_list(self, arg):
202202
with pytest.raises(ValueError) as excinfo:
203203
dynamic_links.LinkStats(arg)
204204
assert'elements of event stats must be "EventStats"' in str(excinfo.value)
205-
205+
206206

207207
class TestQuoting(object):
208208
def test_quote(self):

0 commit comments

Comments
 (0)
0