Skip to content

Commit

Permalink
Chem: Added jupyter health check to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Dolotova committed Feb 6, 2025
1 parent 4088e53 commit 0ad297b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/Chem/scripts/jupyter-health-check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#name: JupyterHealthCheck
#language: python
#output: bool ready

ready = True
2 changes: 2 additions & 0 deletions packages/Chem/src/tests/cell-panel-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ category('cell panel', async () => {
chemCommonRdKit.setRdKitWebRoot(_package.webRoot);
await chemCommonRdKit.initRdKitModuleLocal();
}
//to make sure jupyter is running
await grok.functions.call('Chem:JupyterHealthCheck');
});

test('drug-likeness', async () => {
Expand Down
2 changes: 2 additions & 0 deletions packages/Chem/src/tests/ui-tests-info-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ category('UI info panel', () => {
before(async () => {
grok.shell.closeAll();
grok.shell.windows.showProperties = true;
//to make sure jupyter is running
await grok.functions.call('Chem:JupyterHealthCheck');
});


Expand Down

0 comments on commit 0ad297b

Please sign in to comment.