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

Unified Diff: third_party/typ/typ/tests/json_results_test.py

Issue 2690743002: Roll typ v0.9.9 -> v0.9.11 (5822dda0..f6afa2bb). (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/typ/typ/json_results.py ('k') | third_party/typ/typ/tests/main_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/tests/json_results_test.py
diff --git a/third_party/typ/typ/tests/json_results_test.py b/third_party/typ/typ/tests/json_results_test.py
index 5dfab61da402d16d7dfba31d426a0824149949c6..76446f9f61cb84d8e620cd011e08661c2f1abcc1 100644
--- a/third_party/typ/typ/tests/json_results_test.py
+++ b/third_party/typ/typ/tests/json_results_test.py
@@ -70,14 +70,14 @@ class TestMakeFullResults(unittest.TestCase):
result_set = json_results.ResultSet()
result_set.add(
json_results.Result('foo_test.FooTest.test_fail',
- json_results.ResultType.Failure, 0, 0, 0,
+ json_results.ResultType.Failure, 0, 0.1, 0,
unexpected=True))
result_set.add(json_results.Result('foo_test.FooTest.test_pass',
json_results.ResultType.Pass,
- 0, 0, 0))
+ 0, 0.2, 0))
result_set.add(json_results.Result('foo_test.FooTest.test_skip',
json_results.ResultType.Skip,
- 0, 0, 0, unexpected=False))
+ 0, 0.3, 0, unexpected=False))
full_results = json_results.make_full_results(
['foo=bar'], 0, test_names, result_set)
@@ -96,12 +96,18 @@ class TestMakeFullResults(unittest.TestCase):
'test_fail': {
'expected': 'PASS',
'actual': 'FAIL',
- 'is_unexpected': True},
+ 'times': [0.1],
+ 'is_unexpected': True,
+ },
'test_pass': {
'expected': 'PASS',
- 'actual': 'PASS'},
+ 'actual': 'PASS',
+ 'times': [0.2],
+ },
'test_skip': {
'expected': 'SKIP',
- 'actual': 'SKIP'}}}},
+ 'actual': 'SKIP',
+ 'times': [0.3],
+ }}}},
'version': 3}
self.assertEqual(full_results, expected_full_results)
« no previous file with comments | « third_party/typ/typ/json_results.py ('k') | third_party/typ/typ/tests/main_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698