Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: recipe_engine/unittests/fetch_test.py

Issue 2702313003: Remove unused imports and fix some other linter errors. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The LUCI Authors. All rights reserved. 2 # Copyright 2016 The LUCI Authors. All rights reserved.
3 # Use of this source code is governed under the Apache License, Version 2.0 3 # Use of this source code is governed under the Apache License, Version 2.0
4 # that can be found in the LICENSE file. 4 # that can be found in the LICENSE file.
5 5
6 import base64 6 import base64
7 import io
8 import json 7 import json
9 import os
10 import sys
11 import unittest 8 import unittest
12 import time
13 9
14 import test_env 10 import test_env
15 11
16 import mock 12 import mock
17 import subprocess42 13 import subprocess42
18 14
19 from recipe_engine import fetch 15 from recipe_engine import fetch
20 from recipe_engine import requests_ssl 16 from recipe_engine import requests_ssl
21 17
22 18
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 'author': 'author', 340 'author': 'author',
345 'message': 'message', 341 'message': 'message',
346 }) 342 })
347 self.assertEqual(counts['sleeps'], 4) 343 self.assertEqual(counts['sleeps'], 4)
348 requests_get.assert_has_calls([ 344 requests_get.assert_has_calls([
349 mock.call('repo/+/revision?format=JSON'), 345 mock.call('repo/+/revision?format=JSON'),
350 ] * 5) 346 ] * 5)
351 347
352 if __name__ == '__main__': 348 if __name__ == '__main__':
353 unittest.main() 349 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698