Skip to content

Commit

Permalink
Merge pull request #538 from emollier/test-examples
Browse files Browse the repository at this point in the history
test_doc_examples.py: initialize examples_path.
  • Loading branch information
jgrewe authored Feb 18, 2024
2 parents 04a658f + f77ad4f commit 4cbd9ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixio/test/test_doc_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

class TestDocumentationExamples(unittest.TestCase):

examples_path = Path("docs/source/examples")

def run_script(self, script_name):
file_path = Path.joinpath(self.examples_path, script_name)
runpy.run_path(path_name=str(file_path), run_name="__main__")
Expand Down

0 comments on commit 4cbd9ff

Please sign in to comment.