Skip to content

Commit

Permalink
Allow to exclude list of examples from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simnh committed Mar 6, 2019
1 parent 935e269 commit 0f5a12c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ def test_example_datapackage_readability():
def test_scripting_examples():
"""
"""
exclude = ["plotting.py"]
for example in pkg.resource_listdir("oemof.tabular", "examples/scripting"):
print("Runnig scripting example {} ...".format(example))
if example.endswith(".ipynb"):
if not example.endswith(".ipynb") and example not in exclude:
print("Runnig scripting example {} ...".format(example))
exec(
open(
pkg.resource_filename(
Expand Down

0 comments on commit 0f5a12c

Please sign in to comment.