Skip to content

Commit

Permalink
added more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vedpatwardhan committed Jan 19, 2024
1 parent d26701e commit fd2a160
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ def __init__(self, *args, **kwargs):

@classmethod
def setUp(cls):
print("starting kernel manager")
cls.km = KernelManager()
cls.km.start_kernel(
extra_arguments=["--pylab=inline"], stderr=open(os.devnull, "w")
)
print("started kernel manager")
cls.kc = cls.km.blocking_client()
print("created blocking client")
cls.kc.start_channels()
print("started channels")
cls.kc.execute_interactive("import os;os.environ['IVY_ROOT']='.ivy'")
print("executed first cell")

@classmethod
def tearDown(cls):
Expand All @@ -39,6 +44,7 @@ def invert_config(self):
self.config = inverted_config

def test_notebook(self):
print("inside test_notebook")
cells_to_ignore = []
for cell_number, cell_content in enumerate(self.file.cells):
outputs = []
Expand Down Expand Up @@ -141,6 +147,7 @@ def startTest(self, test):

suite = unittest.TestLoader().loadTestsFromTestCase(NotebookTest)
runner = IterativeTestRunner(verbosity=2)
print("REACHED BEFORE RUN")
result = runner.run(suite)

if result.wasSuccessful():
Expand Down

0 comments on commit fd2a160

Please sign in to comment.