Coverage for tests/test_doc_examples.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-30 09:04 +0000

1from jaypore_ci.jci import Pipeline 

2 

3 

4def test_doc_examples(doc_example_filepath): 

5 with open(doc_example_filepath, "r", encoding="utf-8") as fl: 

6 code = fl.read() 

7 Pipeline.__run_on_exit__ = False 

8 exec(code) # pylint: disable=exec-used 

9 Pipeline.__run_on_exit__ = True