tahamajs's picture
download
raw
415 Bytes
from typing import List
import pytest
from tests.helpers.package_available import _SH_AVAILABLE
if _SH_AVAILABLE:
import sh
def run_sh_command(command: List[str]):
"""Default method for executing shell commands with pytest and sh package."""
msg = None
try:
sh.python(command)
except sh.ErrorReturnCode as e:
msg = e.stderr.decode()
if msg:
pytest.fail(msg=msg)

Xet Storage Details

Size:
415 Bytes
·
Xet hash:
827c414f96c0b41942c0640ea9c5f9ce8c6c74da80fab8ee23864f054e0321e1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.