Remove OrderedDict from test expectation

`api.json.output` is going to start returning regular dict soon
(https://chromium-review.googlesource.com/c/infra/luci/recipes-py/+/4616531)

Note that in python3 (which in this context means 3.8+), dictionaries are
ordered by insertion order.

R=gbeaty

Change-Id: I3358ca32376512d13da945f13ea2c52acf07b404
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4630528
Reviewed-by: Garrett Beaty <gbeaty@google.com>
Commit-Queue: Garrett Beaty <gbeaty@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Auto-Submit: Robbie Iannucci <iannucci@chromium.org>
changes/28/4630528/2
Robert Iannucci 2 years ago committed by LUCI CQ
parent 66ab0a5131
commit c868adc368

@ -152,7 +152,7 @@ class TryserverApi(recipe_api.RecipeApi):
if int(rev['_number']) == self.gerrit_change.patchset:
self._gerrit_change_fetch_ref = rev['ref']
break
self._gerrit_change_owner = res['owner']
self._gerrit_change_owner = dict(res['owner'])
self._gerrit_info_initialized = True
@property

@ -25,7 +25,7 @@ def GenTests(api):
'basic',
api.buildbucket.try_build(),
api.post_process(StepCommandContains, 'print owner',
['echo', "OrderedDict([('name', 'John Doe')])"]),
['echo', "{'name': 'John Doe'}"]),
api.post_process(StatusSuccess),
api.post_process(DropExpectation),
)

Loading…
Cancel
Save