Skip to content

Commit

Permalink
Update test_examples
Browse files Browse the repository at this point in the history
  • Loading branch information
simnh committed Feb 28, 2019
1 parent c20f57f commit 204b1fb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ def test_example_datapackage_readability():
for example in pkg.resource_listdir(
'oemof.tabular', 'examples/datapackages'):

#if example != 'foreignkeys':
systems.append(
ES.from_datapackage(
pkg.resource_filename(
'oemof.tabular',
'examples/datapackages/{}/datapackage.json'.format(example)),
typemap=TYPEMAP)
)
if example != 'lopf':
print("Runnig reading datapackage example {} ...".format(example))
systems.append(
ES.from_datapackage(
pkg.resource_filename(
'oemof.tabular',
'examples/datapackages/{}/datapackage.json'.format(example)),
typemap=TYPEMAP)
)

for system in systems:
assert (type(system) is ES)
Expand All @@ -34,7 +35,7 @@ def test_scripting_examples():
"""
for example in pkg.resource_listdir(
'oemof.tabular', 'examples/scripting'):
print("Runnig example {} ...".format(example))
print("Runnig scripting example {} ...".format(example))
exec(
open(
pkg.resource_filename(
Expand Down

0 comments on commit 204b1fb

Please sign in to comment.