forked from pielstroem/Topics
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'testing' of https://github.com/DARIAH-DE/Topics into te…
…sting
- Loading branch information
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
from subprocess import check_call | ||
from subprocess import check_output, STDOUT, CalledProcessError | ||
from nose.plugins.skip import SkipTest | ||
from pathlib import Path | ||
import logging | ||
|
||
project_path = Path(__file__).absolute().parent.parent | ||
|
||
|
||
def jupyter_integration_test(): | ||
""" | ||
Tries to run the integration test notebook using jupyter. | ||
""" | ||
try: | ||
check_call(["jupyter-nbconvert", "--execute", | ||
"IntegrationTest_v01.ipynb"]) | ||
check_output(["jupyter-nbconvert", "--execute", | ||
str(Path(project_path, "IntegrationTest_v01.ipynb"))], | ||
stderr=STDOUT, universal_newlines=True) | ||
except FileNotFoundError as e: | ||
raise SkipTest("jupyter-nbconvert not found. Cannot run integration test. " | ||
+ str(e)) | ||
except CalledProcessError as e: | ||
logging.error(e.output) | ||
raise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters