Skip to content

Commit

Permalink
Migrate testParseAllOfficialScripts here
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Sep 2, 2019
1 parent db44bef commit ed99a12
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/unit/test_parse.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Test of the omero.scripts.parse functionality
Copyright 2009-2019 Open Microscopy Environment. All rights reserved.
Use is subject to license terms supplied in LICENSE.txt
"""


from path import path
from omero.scripts import parse_file


SCRIPTS = path(".") / ".." / "omero"


class TestParse(object):

def test_parse_all_official_scripts(self):
for script in SCRIPTS.walk("*.py"):
try:
parse_file(str(script))
except Exception, e:
assert False, "%s\n%s" % (script, e)

0 comments on commit ed99a12

Please sign in to comment.