Skip to content

Commit

Permalink
Don't repeat ourselves. -MW
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewware committed Sep 24, 2019
1 parent 0493837 commit 76cc0d1
Showing 1 changed file with 34 additions and 27 deletions.
61 changes: 34 additions & 27 deletions test/test_notebooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import glob
from Notebook_testcase import NotebooksTestCase

class NotebooksMethods(NotebooksTestCase):
Expand All @@ -14,30 +15,36 @@ def _setup(self):
auspex.config.KernelDir = kern_dir.name


def test_01_Essential_Objects(self):
self._setup()
self.runNotebook_jupyter("../doc/examples/","Example-Config.ipynb")

def test_02_Essential_Objects(self):
self._setup()
self.runNotebook_jupyter("../doc/examples/","Example-Channel-Lib.ipynb")

def test_03_Essential_Objects(self):
self._setup()
self.runNotebook_jupyter("../doc/examples/","Example-Calibrations.ipynb")

def test_04_Essential_Objects(self):
self._setup()
self.runNotebook_jupyter("../doc/examples/","Example-Filter-Pipeline.ipynb")

def test_05_Essential_Objects(self):
self._setup()
self.runNotebook_jupyter("../doc/examples/","Example-Experiments.ipynb")

def test_06_Essential_Objects(self):
self._setup()
self.runNotebook_jupyter("../doc/examples/","Example-SingleShot-Fid.ipynb")

def test_07_Essential_Objects(self):
self._setup()
self.runNotebook_jupyter("../doc/examples/","Example-Sweeps.ipynb")
# def test_01_Essential_Objects(self):
# self._setup()
# self.runNotebook_jupyter("../doc/examples/","Example-Config.ipynb")
#
# def test_02_Essential_Objects(self):
# self._setup()
# self.runNotebook_jupyter("../doc/examples/","Example-Channel-Lib.ipynb")
#
# def test_03_Essential_Objects(self):
# self._setup()
# self.runNotebook_jupyter("../doc/examples/","Example-Calibrations.ipynb")
#
# def test_04_Essential_Objects(self):
# self._setup()
# self.runNotebook_jupyter("../doc/examples/","Example-Filter-Pipeline.ipynb")
#
# def test_05_Essential_Objects(self):
# self._setup()
# self.runNotebook_jupyter("../doc/examples/","Example-Experiments.ipynb")
#
# def test_06_Essential_Objects(self):
# self._setup()
# self.runNotebook_jupyter("../doc/examples/","Example-SingleShot-Fid.ipynb")
#
# def test_07_Essential_Objects(self):
# self._setup()
# self.runNotebook_jupyter("../doc/examples/","Example-Sweeps.ipynb")

def test_All_Notebooks(self):
files = glob.glob('../doc/examples/*.ipynb')
for f in files:
self._setup()
self.runNotebook_jupyter(".", f)

0 comments on commit 76cc0d1

Please sign in to comment.