diff --git a/doc/sphinx/guide/extending.rst b/doc/sphinx/guide/extending.rst index 38fcb30..9922479 100644 --- a/doc/sphinx/guide/extending.rst +++ b/doc/sphinx/guide/extending.rst @@ -25,7 +25,7 @@ The simplest solution is to load it directly when your package is imported. In the current example, this could be done by adding the following line to the end of the file:: - init(periodictable.core.elements) + init(periodictable.core.default_table()) This would be fine for the current example because the table size is small and load time is fast. For large tables, you may wish to diff --git a/pytest.ini b/pytest.ini index ddb2e69..0bddf7b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,6 +1,7 @@ [pytest] addopts = --doctest-modules --doctest-glob=*.rst --cov=periodictable doctest_optionflags = ELLIPSIS +pythonpath = doc/sphinx testpaths = periodictable test doc/sphinx/guide python_files = *.py python_classes = NoClassTestsWillMatch