1
0
Fork 0
python-aristaproto/tests/inputs/nestedtwice/test_nestedtwice.py

26 lines
622 B
Python
Raw Normal View History

import pytest
from tests.output_aristaproto.nestedtwice import (
Test,
TestTop,
TestTopMiddle,
TestTopMiddleBottom,
TestTopMiddleEnumBottom,
TestTopMiddleTopMiddleBottom,
)
@pytest.mark.parametrize(
("cls", "expected_comment"),
[
(Test, "Test doc."),
(TestTopMiddleEnumBottom, "EnumBottom doc."),
(TestTop, "Top doc."),
(TestTopMiddle, "Middle doc."),
(TestTopMiddleTopMiddleBottom, "TopMiddleBottom doc."),
(TestTopMiddleBottom, "Bottom doc."),
],
)
def test_comment(cls, expected_comment):
assert cls.__doc__ == expected_comment