github actions has issues with interpretation of function calls inside assert statements
This commit is contained in:
parent
4cb3d9cd6b
commit
b9062c9425
|
@ -264,7 +264,8 @@ p2 : str, optional
|
||||||
p1 description
|
p1 description
|
||||||
|
|
||||||
Remaining description\n"""
|
Remaining description\n"""
|
||||||
assert util._docstringer(test_docstring,adopted_parameters) ==\
|
res = util._docstringer(test_docstring,adopted_parameters)
|
||||||
|
assert res ==\
|
||||||
"""
|
"""
|
||||||
Function description.
|
Function description.
|
||||||
|
|
||||||
|
@ -316,7 +317,8 @@ p2 : str, optional
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
assert (test_docstring:=util._docstringer(test_docstring,adopted_references = testfunction_1)) == \
|
test_docstring = util._docstringer(test_docstring,adopted_references = testfunction_1)
|
||||||
|
assert test_docstring == \
|
||||||
"""
|
"""
|
||||||
Function description.
|
Function description.
|
||||||
|
|
||||||
|
@ -331,7 +333,8 @@ p2 : str, optional
|
||||||
<reference link>
|
<reference link>
|
||||||
Reference 2
|
Reference 2
|
||||||
<reference link>\n"""
|
<reference link>\n"""
|
||||||
assert (test_docstring:=util._docstringer(test_docstring,adopted_notes = testfunction_1)) == \
|
test_docstring = util._docstringer(test_docstring,adopted_notes = testfunction_1)
|
||||||
|
assert test_docstring == \
|
||||||
"""
|
"""
|
||||||
Function description.
|
Function description.
|
||||||
|
|
||||||
|
@ -362,8 +365,8 @@ p2 : str, optional
|
||||||
<reference link>
|
<reference link>
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
test_docstring = util._docstringer(test_docstring,adopted_references = testfunction_2)
|
||||||
assert (test_docstring:=util._docstringer(test_docstring,adopted_references = testfunction_2)) == \
|
assert test_docstring == \
|
||||||
"""
|
"""
|
||||||
Function description.
|
Function description.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue