mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Avoid using camelCase names in autosummary tests
This commit is contained in:
parent
4681c23ea3
commit
2d2b73c706
@ -10,7 +10,7 @@
|
||||
"""
|
||||
|
||||
|
||||
def withSentence():
|
||||
def with_sentence():
|
||||
'''I have a sentence which
|
||||
spans multiple lines. Then I have
|
||||
more stuff
|
||||
@ -18,7 +18,7 @@ def withSentence():
|
||||
pass
|
||||
|
||||
|
||||
def noSentence():
|
||||
def no_sentence():
|
||||
'''this doesn't start with a
|
||||
capital. so it's not considered
|
||||
a sentence
|
||||
@ -26,7 +26,7 @@ def noSentence():
|
||||
pass
|
||||
|
||||
|
||||
def emptyLine():
|
||||
def empty_line():
|
||||
'''This is the real summary
|
||||
|
||||
However, it did't end with a period.
|
||||
|
@ -186,9 +186,9 @@ def test_get_items_summary(make_app, app_params):
|
||||
assert html_warnings == ''
|
||||
|
||||
expected_values = {
|
||||
'withSentence': 'I have a sentence which spans multiple lines.',
|
||||
'noSentence': "this doesn't start with a capital.",
|
||||
'emptyLine': 'This is the real summary',
|
||||
'with_sentence': 'I have a sentence which spans multiple lines.',
|
||||
'no_sentence': "this doesn't start with a capital.",
|
||||
'empty_line': 'This is the real summary',
|
||||
'module_attr': 'This is a module attribute',
|
||||
'C.class_attr': 'This is a class attribute',
|
||||
'C.instance_attr': 'This is an instance attribute',
|
||||
|
Loading…
Reference in New Issue
Block a user