pick-ui: clean up formatting

Makes it easier to see what's what, especially once we have to change
things in the next commits.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34117>
This commit is contained in:
Eric Engestrom 2025-03-21 12:24:22 +01:00 committed by Marge Bot
parent 2769e494c6
commit 9d9e0c9c1b

View file

@ -46,20 +46,28 @@ class TestCommit:
def test_not_nominated(self, unnominated_commit: 'core.Commit'):
c = unnominated_commit
v = c.to_json()
assert v == {'sha': 'abc123', 'description': 'sub: A commit', 'nominated': False,
'nomination_type': None, 'resolution': core.Resolution.UNRESOLVED.value,
'main_sha': '45678', 'because_sha': None}
assert v == {
'sha': 'abc123',
'description': 'sub: A commit',
'nominated': False,
'nomination_type': None,
'resolution': core.Resolution.UNRESOLVED.value,
'main_sha': '45678',
'because_sha': None,
}
def test_nominated(self, nominated_commit: 'core.Commit'):
c = nominated_commit
v = c.to_json()
assert v == {'sha': 'abc123',
'description': 'sub: A commit',
'nominated': True,
'nomination_type': core.NominationType.CC.value,
'resolution': core.Resolution.UNRESOLVED.value,
'main_sha': None,
'because_sha': None}
assert v == {
'sha': 'abc123',
'description': 'sub: A commit',
'nominated': True,
'nomination_type': core.NominationType.CC.value,
'resolution': core.Resolution.UNRESOLVED.value,
'main_sha': None,
'because_sha': None,
}
class TestFromJson: