diff --git a/tests/base-notebook/test_packages.py b/tests/base-notebook/test_packages.py index 30d48211..169bdb1e 100644 --- a/tests/base-notebook/test_packages.py +++ b/tests/base-notebook/test_packages.py @@ -18,19 +18,18 @@ However it could be easily changed (or completed) to cover also dependencies `pa Example: - $ make test/datascience-notebook + $ make test/base-notebook # [...] # test/test_packages.py::test_python_packages - # --------------------------------------------------------------------------------------------- live log setup ---------------------------------------------------------------------------------------------- - # 2020-03-08 09:56:04 [ INFO] Starting container jupyter/datascience-notebook ... (package_helper.py:51) - # 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) - # 2020-03-08 09:56:04 [ INFO] Grabing the list of manually requested packages ... (package_helper.py:76) - # ---------------------------------------------------------------------------------------------- live log call ---------------------------------------------------------------------------------------------- - # 2020-03-08 09:56:07 [ INFO] Testing the import of packages ... (test_packages.py:125) - # 2020-03-08 09:56:07 [ INFO] Trying to import conda (test_packages.py:127) - # 2020-03-08 09:56:07 [ INFO] Trying to import notebook (test_packages.py:127) - # 2020-03-08 09:56:08 [ INFO] Trying to import jupyterhub (test_packages.py:127) + # tests/base-notebook/test_packages.py::test_python_packages + # ---------------------------------------------------------------------------------------------- live log setup ---------------------------------------------------------------------------------------------- + # 2022-02-17 16:44:36 [ INFO] Starting container jupyter/base-notebook ... (package_helper.py:55) + # 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) + # 2022-02-17 16:44:37 [ INFO] Grabing the list of manually requested packages ... (package_helper.py:83) + # ---------------------------------------------------------------------------------------------- live log call ----------------------------------------------------------------------------------------------- + # 2022-02-17 16:44:38 [ INFO] Testing the import of packages ... (test_packages.py:144) + # 2022-02-17 16:44:38 [ INFO] Trying to import mamba (test_packages.py:146) # [...] """ diff --git a/tests/test_units.py b/tests/base-notebook/test_units.py similarity index 100% rename from tests/test_units.py rename to tests/base-notebook/test_units.py diff --git a/tests/run_tests.py b/tests/run_tests.py index a7f9ac15..664ebcc2 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -3,15 +3,12 @@ # Distributed under the terms of the Modified BSD License. import argparse import logging -from pathlib import Path import plumbum from plumbum.cmd import pytest from images_hierarchy import get_test_dirs -THIS_DIR = Path(__file__).parent.resolve() - LOGGER = logging.getLogger(__name__) @@ -27,7 +24,6 @@ def test_image(short_image_name: str, owner: str) -> None: "auto", "-m", "not info", - THIS_DIR / "test_units.py", test_dirs, ] & plumbum.FG