disable black for part of key rotations tests

In order to make the `RootVersion` test cases understandable it's
better if we use keywords and don't split the different RootVersions
into multiple lines.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
This commit is contained in:
Martin Vrachev 2021-11-11 15:31:04 +02:00
parent beb8087bf5
commit 2042a54dcf

View file

@ -85,6 +85,7 @@ def _run_refresh(self) -> None:
)
updater.refresh()
# fmt: off
root_rotation_cases = {
"1-of-1 key rotation": [
RootVersion(keys=[1], threshold=1, sigs=[1]),
@ -154,6 +155,7 @@ def _run_refresh(self) -> None:
RootVersion(keys=[1, 2], threshold=2, sigs=[1, 2]),
],
}
# fmt: on
@run_sub_tests_with_dataset(root_rotation_cases)
def test_root_rotation(self, root_versions: List[RootVersion]) -> None: