Add run_command script in tests (#1931)

* Add run_command script in tests

* Fix

* Add timeout back
This commit is contained in:
Ayaz Salikhov
2023-07-03 00:34:06 +04:00
committed by GitHub
parent 28c5a1bf1d
commit 2343fdba34
9 changed files with 50 additions and 76 deletions

View File

@@ -1,14 +1,10 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import logging
from tests.conftest import TrackedContainer
from tests.package_helper import run_package_manager
LOGGER = logging.getLogger(__name__)
from tests.run_command import run_command
def test_npm_package_manager(container: TrackedContainer) -> None:
"""Test that npm is installed and runs."""
run_package_manager(container, "npm", "--version")
run_command(container, "npm --version")