Skip to content

Commit

Permalink
TST: test that Attributes comes after Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Jul 11, 2024
1 parent e4514f2 commit 8136de6
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions numpydoc/tests/test_docscrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,17 @@ def test_duplicate_signature():
b
c
Other Parameters
----------------
another parameter : str
This parameter is less important.
Notes
-----
Some notes about the class.
Examples
--------
For usage examples, see `ode`.
Expand All @@ -1223,10 +1234,6 @@ def test_class_members_doc():
jac : callable ``jac(t, y, *jac_args)``
Bbb.
Examples
--------
For usage examples, see `ode`.
Attributes
----------
t : float
Expand All @@ -1251,6 +1258,21 @@ def test_class_members_doc():
b
c
Other Parameters
----------------
another parameter : str
This parameter is less important.
Notes
-----
Some notes about the class.
Examples
--------
For usage examples, see `ode`.
""",
)

Expand Down Expand Up @@ -1304,10 +1326,6 @@ def no_period(self):
**jac** : callable ``jac(t, y, *jac_args)``
Bbb.
.. rubric:: Examples
For usage examples, see `ode`.
:Attributes:
**t** : float
Expand Down Expand Up @@ -1345,6 +1363,19 @@ def no_period(self):
**c**
===== ==========
.. rubric:: Other Parameters
**another parameter** : str
This parameter is less important.
.. rubric:: Notes
Some notes about the class.
.. rubric:: Examples
For usage examples, see `ode`.
""",
)

Expand Down

0 comments on commit 8136de6

Please sign in to comment.