Skip to content

Commit 43faea5

Browse files
committed
doc field test
1 parent 4eb1d55 commit 43faea5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

rebound/tests/test_integrator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
import ctypes
66

77
class TestIntegratorDoc(unittest.TestCase):
8+
def test_field_doc(self):
9+
sim = rebound.Simulation()
10+
sim.integrator = "whfast"
11+
doc = sim.integrator.safe_mode.__doc__
12+
lines = len(doc.split("\n"))
13+
self.assertGreater(lines, 4)
14+
815
def test_integrator_doc(self):
916
""" Make sure documentation is available for each integrator and it renders ok """
1017
clibrebound = rebound.clibrebound

0 commit comments

Comments
 (0)