Skip to content

Commit

Permalink
Added examples test file
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-beta committed Aug 10, 2020
1 parent a530a07 commit 93ec9e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import subprocess
import glob
import os

def test_examples():
loc_dir = os.path.realpath(__file__).replace(os.path.basename(__file__), '')
examples = glob.glob(os.path.join(loc_dir, '..', 'examples', '*.py'))
for ex in examples:
assert not subprocess.check_call(f'python {ex}', shell=True)

0 comments on commit 93ec9e4

Please sign in to comment.