forked from jupyter-book/jupyter-book
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jupyter-book#93 from ExecutableBookProject/tests
adding PDF tests with HTML and some docs
- Loading branch information
Showing
7 changed files
with
81 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
gconf-service | ||
libasound2 | ||
libatk1.0-0 | ||
libatk-bridge2.0-0 | ||
libc6 | ||
libcairo2 | ||
libcups2 | ||
libdbus-1-3 | ||
libexpat1 | ||
libfontconfig1 | ||
libgcc1 | ||
libgconf-2-4 | ||
libgdk-pixbuf2.0-0 | ||
libglib2.0-0 | ||
libgtk-3-0 | ||
libnspr4 | ||
libpango-1.0-0 | ||
libpangocairo-1.0-0 | ||
libstdc++6 | ||
libx11-6 | ||
libx11-xcb1 | ||
libxcb1 | ||
libxcomposite1 | ||
libxcursor1 | ||
libxdamage1 | ||
libxext6 | ||
libxfixes3 | ||
libxi6 | ||
libxrandr2 | ||
libxrender1 | ||
libxss1 | ||
libxtst6 | ||
ca-certificates | ||
fonts-liberation | ||
libappindicator1 | ||
libnss3 | ||
lsb-release | ||
xdg-utils | ||
wget |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""Testing PDF functionality of the CLI.""" | ||
|
||
from pathlib import Path | ||
from subprocess import run | ||
|
||
path_tests = Path(__file__).parent | ||
|
||
|
||
def test_html_pdf(tmpdir): | ||
path_output = Path(tmpdir).absolute() | ||
path_template = path_tests.parent.joinpath("book_template") | ||
cmd = f"jb build {path_template} --path-output {path_output} --build pdf_html" | ||
run(cmd.split(), check=True) | ||
path_html = path_output.joinpath("_build", "html") | ||
path_pdf = path_output.joinpath("_build", "pdf") | ||
assert path_html.joinpath("index.html").exists() | ||
assert path_pdf.joinpath("book.pdf").exists() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,7 @@ | |
"plotly", | ||
"bokeh", | ||
"altair", | ||
"pyppeteer", | ||
], | ||
"pdf_html": "pyppeteer", | ||
}, | ||
|