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

Side by Side Diff: third_party/typ/typ/tests/json_results_test.py

Issue 2658933006: Bump typ to v0.9.10 to pick up sergiyb's https fix for uploading results. (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
« no previous file with comments | « third_party/typ/typ/json_results.py ('k') | third_party/typ/typ/version.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 Dirk Pranke. All rights reserved. 1 # Copyright 2014 Dirk Pranke. All rights reserved.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 14 matching lines...) Expand all
25 full_results = json_results.make_full_results([], 0, [], results) 25 full_results = json_results.make_full_results([], 0, [], results)
26 url, content_type, data = json_results.make_upload_request( 26 url, content_type, data = json_results.make_upload_request(
27 'localhost', 'fake_builder_name', 'fake_master', 'fake_test_type', 27 'localhost', 'fake_builder_name', 'fake_master', 'fake_test_type',
28 full_results) 28 full_results)
29 29
30 self.assertEqual( 30 self.assertEqual(
31 content_type, 31 content_type,
32 'multipart/form-data; ' 32 'multipart/form-data; '
33 'boundary=-J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-') 33 'boundary=-J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-')
34 34
35 self.assertEqual(url, 'http://localhost/testfile/upload') 35 self.assertEqual(url, 'https://localhost/testfile/upload')
36 self.assertMultiLineEqual( 36 self.assertMultiLineEqual(
37 data, 37 data,
38 ('---J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-\r\n' 38 ('---J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-\r\n'
39 'Content-Disposition: form-data; name="builder"\r\n' 39 'Content-Disposition: form-data; name="builder"\r\n'
40 '\r\n' 40 '\r\n'
41 'fake_builder_name\r\n' 41 'fake_builder_name\r\n'
42 '---J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-\r\n' 42 '---J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-\r\n'
43 'Content-Disposition: form-data; name="master"\r\n' 43 'Content-Disposition: form-data; name="master"\r\n'
44 '\r\n' 44 '\r\n'
45 'fake_master\r\n' 45 'fake_master\r\n'
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 'actual': 'FAIL', 98 'actual': 'FAIL',
99 'is_unexpected': True}, 99 'is_unexpected': True},
100 'test_pass': { 100 'test_pass': {
101 'expected': 'PASS', 101 'expected': 'PASS',
102 'actual': 'PASS'}, 102 'actual': 'PASS'},
103 'test_skip': { 103 'test_skip': {
104 'expected': 'SKIP', 104 'expected': 'SKIP',
105 'actual': 'SKIP'}}}}, 105 'actual': 'SKIP'}}}},
106 'version': 3} 106 'version': 3}
107 self.assertEqual(full_results, expected_full_results) 107 self.assertEqual(full_results, expected_full_results)
OLDNEW
« no previous file with comments | « third_party/typ/typ/json_results.py ('k') | third_party/typ/typ/version.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698