Skip to content

Commit

Permalink
allow tests to be run from any location (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf authored Oct 28, 2020
1 parent 3bb0906 commit 7cadd92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import unittest
import os


def test_suite():
loader = unittest.TestLoader()
suite = loader.discover('python/tests', pattern='test*.py')
path = os.path.abspath(os.path.dirname(__file__))
suite = loader.discover(path, pattern='test*.py')
return suite

0 comments on commit 7cadd92

Please sign in to comment.