mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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:
parent
2769e494c6
commit
9d9e0c9c1b
1 changed files with 18 additions and 10 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue