UT: Fix formatting in test_transforms.py

This commit is contained in:
Mike Salvatore 2022-08-22 08:02:25 -04:00
parent 789ca96bb0
commit b7b3f28213
1 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,8 @@
from itertools import zip_longest from itertools import zip_longest
import pytest
from typing import MutableSequence, Sequence from typing import MutableSequence, Sequence
import pytest
from monkey_island.cc.models.transforms import ( from monkey_island.cc.models.transforms import (
make_immutable_nested_sequence, make_immutable_nested_sequence,
make_immutable_sequence, make_immutable_sequence,
@ -18,11 +19,13 @@ def test_make_immutable_sequence__list():
@pytest.mark.parametrize( @pytest.mark.parametrize(
"mutable_sequence", [ "mutable_sequence",
[
[1, 2, 3], [1, 2, 3],
[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]],
[[1, 2, 3, [4, 5, 6]], [4, 5, 6]], [[1, 2, 3, [4, 5, 6]], [4, 5, 6]],
[8, [5.3, "invalid_comm_type"]]] [8, [5.3, "invalid_comm_type"]],
],
) )
def test_make_immutable_nested_sequence(mutable_sequence): def test_make_immutable_nested_sequence(mutable_sequence):
immutable_sequence = make_immutable_nested_sequence(mutable_sequence) immutable_sequence = make_immutable_nested_sequence(mutable_sequence)