Skip to content

Commit dfca6db

Browse files
authored
Merge pull request #266 from jemygraw/master
fix build failed issues
2 parents fdf85a8 + 1392a6f commit dfca6db

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

qiniu/auth.py

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
'deleteAfterDays', # 文件多少天后自动删除
3838
])
3939

40+
4041
class Auth(object):
4142
"""七牛安全机制类
4243

test_qiniu.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ def test_token_of_request(self):
9898
token = dummy_auth.token_of_request('http://www.qiniu.com?go=1', 'test', 'application/x-www-form-urlencoded')
9999
assert token == 'abcdefghklmnopq:svWRNcacOE-YMsc70nuIYdaa1e4='
100100

101-
def test_deprecatedPolicy(self):
102-
with pytest.raises(ValueError):
103-
dummy_auth.upload_token('1', None, policy={'asyncOps': 1})
104-
105101
def test_verify_callback(self):
106102
body = 'name=sunflower.jpg&hash=Fn6qeQi4VDLQ347NiRm-RlQx_4O2&location=Shanghai&price=1500.00&uid=123'
107103
url = 'test.qiniu.com/callback'
@@ -118,7 +114,7 @@ def test_list(self):
118114
print(info)
119115
assert eof is False
120116
assert len(ret.get('items')) == 4
121-
ret, eof, info = self.bucket.list(bucket_name, limit=100)
117+
ret, eof, info = self.bucket.list(bucket_name, limit=1000)
122118
print(info)
123119
assert eof is True
124120

0 commit comments

Comments
 (0)