Skip to content

Commit 3fff540

Browse files
committed
Fix pylint errors.
1 parent 97a7774 commit 3fff540

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

test/functional/test_file_upload_update_download.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,3 @@ def test_upload_then_download(box_client, test_file_path, test_file_content, fil
4545
expected_file_content = test_file_content.encode('utf-8') if isinstance(test_file_content, six.text_type)\
4646
else test_file_content
4747
assert writeable_stream.getvalue() == expected_file_content
48-
49-
50-
if __name__ == '__main__':
51-
from test.functional.conftest import box_client, box_oauth, mock_box, Box
52-
53-
class MonkeyPatch:
54-
def setattr(self, target, attr, value):
55-
setattr(target, attr, value)
56-
57-
client_id, client_secret, login = 'client_id', 'client_secret', 'login'
58-
box = mock_box(Box(), MonkeyPatch(), client_id, client_secret, 'user', login)
59-
client = box_client(box_oauth(client_id, client_secret, login))
60-
test_upload_then_update(client, '/path/to/file', 'Hello', 'Goodbye', 'foo.txt')

test/unit/util/test_multipart_stream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def multipart_stream_files(request):
1818

1919

2020
def test_multipart_stream_orders_data_before_files(multipart_stream_data, multipart_stream_files):
21+
# pylint:disable=redefined-outer-name
2122
if not multipart_stream_data and not multipart_stream_files:
2223
pytest.xfail('Encoder does not support empty fields.')
2324
stream = MultipartStream(multipart_stream_data, multipart_stream_files)

test/util/streamable_mock_open.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def read(size=-1):
2323
handle.position += size
2424
return data
2525

26+
# pylint:disable=no-member
2627
handle.tell.side_effect = tell
2728
handle.len = len(read_data)
2829
handle.read.side_effect = read

0 commit comments

Comments
 (0)