This commit is contained in:
Ayaz Salikhov
2022-02-17 16:49:04 +00:00
parent cea692e4e4
commit b4222a3062
3 changed files with 9 additions and 14 deletions

View File

@@ -18,19 +18,18 @@ However it could be easily changed (or completed) to cover also dependencies `pa
Example: Example:
$ make test/datascience-notebook $ make test/base-notebook
# [...] # [...]
# test/test_packages.py::test_python_packages # test/test_packages.py::test_python_packages
# --------------------------------------------------------------------------------------------- live log setup ---------------------------------------------------------------------------------------------- # tests/base-notebook/test_packages.py::test_python_packages
# 2020-03-08 09:56:04 [ INFO] Starting container jupyter/datascience-notebook ... (package_helper.py:51) # ---------------------------------------------------------------------------------------------- live log setup ----------------------------------------------------------------------------------------------
# 2020-03-08 09:56:04 [ INFO] Running jupyter/datascience-notebook with args {'detach': True, 'ports': {'8888/tcp': 8888}, 'tty': True, 'command': ['start.sh', 'bash', '-c', 'sleep infinity']} ... (conftest.py:78) # 2022-02-17 16:44:36 [ INFO] Starting container jupyter/base-notebook ... (package_helper.py:55)
# 2020-03-08 09:56:04 [ INFO] Grabing the list of manually requested packages ... (package_helper.py:76) # 2022-02-17 16:44:36 [ INFO] Running jupyter/base-notebook with args {'detach': True, 'tty': True, 'command': ['start.sh', 'bash', '-c', 'sleep infinity']} ... (conftest.py:95)
# ---------------------------------------------------------------------------------------------- live log call ---------------------------------------------------------------------------------------------- # 2022-02-17 16:44:37 [ INFO] Grabing the list of manually requested packages ... (package_helper.py:83)
# 2020-03-08 09:56:07 [ INFO] Testing the import of packages ... (test_packages.py:125) # ---------------------------------------------------------------------------------------------- live log call -----------------------------------------------------------------------------------------------
# 2020-03-08 09:56:07 [ INFO] Trying to import conda (test_packages.py:127) # 2022-02-17 16:44:38 [ INFO] Testing the import of packages ... (test_packages.py:144)
# 2020-03-08 09:56:07 [ INFO] Trying to import notebook (test_packages.py:127) # 2022-02-17 16:44:38 [ INFO] Trying to import mamba (test_packages.py:146)
# 2020-03-08 09:56:08 [ INFO] Trying to import jupyterhub (test_packages.py:127)
# [...] # [...]
""" """

View File

@@ -3,15 +3,12 @@
# Distributed under the terms of the Modified BSD License. # Distributed under the terms of the Modified BSD License.
import argparse import argparse
import logging import logging
from pathlib import Path
import plumbum import plumbum
from plumbum.cmd import pytest from plumbum.cmd import pytest
from images_hierarchy import get_test_dirs from images_hierarchy import get_test_dirs
THIS_DIR = Path(__file__).parent.resolve()
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
@@ -27,7 +24,6 @@ def test_image(short_image_name: str, owner: str) -> None:
"auto", "auto",
"-m", "-m",
"not info", "not info",
THIS_DIR / "test_units.py",
test_dirs, test_dirs,
] ]
& plumbum.FG & plumbum.FG