Avoid using camelCase names in autosummary tests

This commit is contained in:
Adam Turner 2024-12-09 14:57:08 +00:00
parent 4681c23ea3
commit 2d2b73c706
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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',