From ae6063e7bcaccaf4dd843e58f92664a946c0be02 Mon Sep 17 00:00:00 2001 From: Paul Kienzle Date: Mon, 7 Oct 2024 16:25:02 -0400 Subject: [PATCH] try picking up installed package with --pyargs --- doc/sphinx/guide/extending.rst | 2 +- pytest.ini | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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