|
|
|
@ -104,6 +104,11 @@ class TestSimpleModule:
|
|
|
|
|
# (autoapi_python_class_content="both") class docstring only once.
|
|
|
|
|
assert example_file.count("One __init__.") == 3
|
|
|
|
|
|
|
|
|
|
# Tuples should be rendered as tuples, not lists
|
|
|
|
|
assert "('a', 'b')" in example_file
|
|
|
|
|
# Lists should be rendered as lists, not tuples
|
|
|
|
|
assert "['c', 'd']" in example_file
|
|
|
|
|
|
|
|
|
|
index_path = "_build/text/index.txt"
|
|
|
|
|
with io.open(index_path, encoding="utf8") as index_handle:
|
|
|
|
|
index_file = index_handle.read()
|
|
|
|
|