Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
12
venv/Lib/site-packages/nbconvert/tests/utils.py
Normal file
12
venv/Lib/site-packages/nbconvert/tests/utils.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import pytest
|
||||
from shutil import which
|
||||
|
||||
def onlyif_cmds_exist(*commands):
|
||||
"""
|
||||
Decorator to skip test when at least one of `commands` is not found.
|
||||
"""
|
||||
for cmd in commands:
|
||||
if not which(cmd):
|
||||
return pytest.mark.skip("This test runs only if command '{0}' "
|
||||
"is installed".format(cmd))
|
||||
return lambda f: f
|
Loading…
Add table
Add a link
Reference in a new issue