Skip to content

Commit a241b09

Browse files
yt-msMidnighter
authored andcommitted
docs(unit tests): fix flake8 warnings
1 parent 504ce68 commit a241b09

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/unit/api/test_structurizr_client_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
@pytest.fixture(scope="module")
2626
def archive_location(tmp_path_factory):
27+
"""Return a temporary path to use in tests."""
2728
location = tmp_path_factory.mktemp("structurizr")
2829
return str(location)
2930

tests/unit/view/test_paper_size.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@
7575
],
7676
)
7777
def expected(request):
78+
"""Return expected dimensions to use in test cases."""
7879
return Dimensions(*request.param)
7980

8081

8182
def test_from_value(expected: Dimensions):
83+
"""Test getting a PaperSize by value for each size."""
8284
paper = PaperSize(expected.value)
8385
assert paper.name == expected.value
8486
assert paper.value == expected.value
@@ -89,6 +91,7 @@ def test_from_value(expected: Dimensions):
8991

9092

9193
def test_from_getitem(expected: Dimensions):
94+
"""Test getting a PaperSize with getitem for each size."""
9295
paper = PaperSize[expected.value]
9396
assert paper.name == expected.value
9497
assert paper.value == expected.value
@@ -99,6 +102,7 @@ def test_from_getitem(expected: Dimensions):
99102

100103

101104
def test_from_attribute(expected: Dimensions):
105+
"""Test getting a PaperSize as attribute of enum for each size."""
102106
paper = getattr(PaperSize, expected.value)
103107
assert paper.name == expected.value
104108
assert paper.value == expected.value

0 commit comments

Comments
 (0)