Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 5c5b709

Browse files
committed
Fix test_build_js tests
Looks like many of the lines dropped a "--" at the end of them. This looks largely cosmetic, so I'm just going to update the expected strings in the tests to match.
1 parent f175613 commit 5c5b709

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_build_js/test_build_js.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_autofunction_callback(self):
4949
"""Make sure @callback uses can be documented with autofunction."""
5050
self._file_contents_eq(
5151
'autofunction_callback',
52-
u'requestCallback(responseCode)\n\n Some global callback\n\n Arguments:\n * **responseCode** (*number*) --\n')
52+
'requestCallback(responseCode)\n\n Some global callback\n\n Arguments:\n * **responseCode** (*number*)\n')
5353

5454
def test_autofunction_example(self):
5555
"""Make sure @example tags can be documented with autofunction."""
@@ -68,10 +68,10 @@ def test_autofunction_destructured_params(self):
6868
'autofunction_destructured_params',
6969
u'destructuredParams(p1, p2)\n\n'
7070
' Arguments:\n'
71-
' * **p1** (*number*) --\n\n'
72-
' * **p2** (*Object*) --\n\n'
73-
' * **p2.foo** (*string*) --\n\n'
74-
' * **p2.bar** (*string*) --\n')
71+
' * **p1** (*number*)\n\n'
72+
' * **p2** (*Object*)\n\n'
73+
' * **p2.foo** (*string*)\n\n'
74+
' * **p2.bar** (*string*)\n')
7575

7676
def test_autofunction_defaults_in_doclet(self):
7777
"""Make sure param default values appear in the function definition,
@@ -80,9 +80,9 @@ def test_autofunction_defaults_in_doclet(self):
8080
'autofunction_defaults_doclet',
8181
'defaultsDocumentedInDoclet(func=() => 5, str="a string with \\" quote", strNum="42", strBool="true", num=5, nil=null)\n\n'
8282
' Arguments:\n'
83-
' * **func** (*function*) --\n\n'
84-
' * **strNum** (*string*) --\n\n'
85-
' * **strBool** (*string*) --\n')
83+
' * **func** (*function*)\n\n'
84+
' * **strNum** (*string*)\n\n'
85+
' * **strBool** (*string*)\n')
8686

8787
def test_autofunction_defaults_in_code(self):
8888
"""Make sure param default values appear in the function definition,
@@ -357,7 +357,7 @@ def test_union_types(self):
357357
switched from " | " as the union separator back to "|".
358358
359359
"""
360-
assert '* **fnodeA** (*Node|Fnode*) --' in self._file_contents('union')
360+
assert '* **fnodeA** (*Node|Fnode*)' in self._file_contents('union')
361361

362362
def test_field_list_unwrapping(self):
363363
"""Ensure the tails of field lists have line breaks and leading

0 commit comments

Comments
 (0)