mirror of
https://github.com/wassname/simpeg.git
synced 2026-09-11 12:44:29 +08:00
Merge remote-tracking branch 'refs/remotes/origin/dev'
Conflicts: SimPEG/DCIP/BaseDC.py SimPEG/DCIP/BaseIP.py
This commit is contained in:
@@ -5,8 +5,8 @@ from scipy.sparse.linalg import dsolve
|
||||
|
||||
TOL = 1e-14
|
||||
|
||||
MAPS_TO_TEST_2D = ["CircleMap", "ComplexMap", "ExpMap", "IdentityMap", "SurjectVertical1D", "Weighting", "SurjectFull","FullMap","Vertical1DMap"]
|
||||
MAPS_TO_TEST_3D = [ "ComplexMap", "ExpMap", "IdentityMap", "SurjectVertical1D", "Weighting", "SurjectFull","FullMap","Vertical1DMap"]
|
||||
MAPS_TO_TEST_2D = ["CircleMap", "ComplexMap", "ExpMap", "IdentityMap", "SurjectVertical1D", "Weighting", "SurjectFull","FullMap"]
|
||||
MAPS_TO_TEST_3D = [ "ComplexMap", "ExpMap", "IdentityMap", "SurjectVertical1D", "Weighting", "SurjectFull","FullMap"]
|
||||
|
||||
class MapTests(unittest.TestCase):
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
import subprocess
|
||||
import unittest
|
||||
import os
|
||||
|
||||
class Doc_Test(unittest.TestCase):
|
||||
|
||||
@property
|
||||
def path_to_docs(self):
|
||||
dirname, filename = os.path.split(os.path.abspath(__file__))
|
||||
return os.path.sep.join(dirname.split(os.path.sep)[:-2] + ['docs'])
|
||||
|
||||
def test_html(self):
|
||||
doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
|
||||
html_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['html'])
|
||||
|
||||
check = subprocess.call(["sphinx-build", "-nW", "-b", "html", "-d",
|
||||
"%s"%(doctrees_path) ,
|
||||
"%s"%(self.path_to_docs),
|
||||
"%s"%(html_path)])
|
||||
assert check == 0
|
||||
|
||||
# def test_latex(self):
|
||||
# doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
|
||||
# latex_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['latex'])
|
||||
|
||||
# check = subprocess.call(["sphinx-build", "-nW", "-b", "latex", "-d",
|
||||
# "%s"%(doctrees_path),
|
||||
# "%s"%(self.path_to_docs),
|
||||
# "%s"%(latex_path)])
|
||||
# assert check == 0
|
||||
|
||||
# def test_linkcheck(self):
|
||||
# doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
|
||||
# link_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build'])
|
||||
|
||||
# check = subprocess.call(["sphinx-build", "-nW", "-b", "linkcheck", "-d",
|
||||
# "%s"%(doctrees_path),
|
||||
# "%s"%(self.path_to_docs),
|
||||
# "%s"%(link_path)])
|
||||
# assert check == 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user