mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-27 19:48:52 +08:00
my_function.__name__ must be set to 'test_' for nosetests
This commit is contained in:
@@ -4,11 +4,11 @@ from SimPEG import Examples
|
||||
import numpy as np
|
||||
|
||||
def get(test):
|
||||
def func(self):
|
||||
def test_func(self):
|
||||
print '\nTesting %s.run(plotIt=False)\n'%test
|
||||
getattr(Examples, test).run(plotIt=False)
|
||||
self.assertTrue(True)
|
||||
return func
|
||||
return test_func
|
||||
attrs = dict()
|
||||
for test in Examples.__examples__:
|
||||
attrs['test_'+test] = get(test)
|
||||
|
||||
Reference in New Issue
Block a user