mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-13 03:53:05 +08:00
List examples in the init file.
This commit is contained in:
@@ -10,10 +10,8 @@ def get(test):
|
||||
self.assertTrue(True)
|
||||
return func
|
||||
attrs = dict()
|
||||
tests = [_ for _ in dir(Examples) if not _.startswith('_')]
|
||||
for test in tests:
|
||||
for test in Examples.__examples__:
|
||||
attrs['test_'+test] = get(test)
|
||||
del get, tests, _
|
||||
|
||||
TestExamples = type('TestExamples', (unittest.TestCase,), attrs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user