Skip to content

Commit

Permalink
unittest discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
markotoplak committed Oct 18, 2024
1 parent b3394fe commit aca79bb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions orangecontrib/snom/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os
import unittest


def load_tests(loader, tests, pattern):
tests_dir = os.path.dirname(__file__)

if loader is None:
loader = unittest.TestLoader()
if pattern is None:
pattern = 'test*.py'

all_tests = [
loader.discover(tests_dir, pattern, tests_dir),
]

return unittest.TestSuite(all_tests)
17 changes: 17 additions & 0 deletions orangecontrib/snom/widgets/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os
import unittest


def load_tests(loader, tests, pattern):
tests_dir = os.path.dirname(__file__)

if loader is None:
loader = unittest.TestLoader()
if pattern is None:
pattern = 'test*.py'

all_tests = [
loader.discover(tests_dir, pattern, tests_dir),
]

return unittest.TestSuite(all_tests)

0 comments on commit aca79bb

Please sign in to comment.