From d070bb647db435b8d0b1e08fe45e6393b896a074 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Tue, 7 Nov 2023 21:38:45 +0000 Subject: [PATCH] Move the tests on the cli and piping to tests/functional/cli --- tests/functional/__init__.py | 0 tests/functional/cli/__init__.py | 0 tests/{ => functional/cli}/test_black.py | 2 +- tests/{ => functional/cli}/test_cli.py | 2 +- tests/{ => functional/cli}/test_cli_check.py | 2 +- tests/{ => functional/cli}/test_cli_config.py | 0 tests/{ => functional/cli}/test_execute.py | 2 +- tests/{ => functional/cli}/test_isort.py | 2 +- 8 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 tests/functional/__init__.py create mode 100644 tests/functional/cli/__init__.py rename tests/{ => functional/cli}/test_black.py (99%) rename tests/{ => functional/cli}/test_cli.py (99%) rename tests/{ => functional/cli}/test_cli_check.py (96%) rename tests/{ => functional/cli}/test_cli_config.py (100%) rename tests/{ => functional/cli}/test_execute.py (99%) rename tests/{ => functional/cli}/test_isort.py (95%) diff --git a/tests/functional/__init__.py b/tests/functional/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/functional/cli/__init__.py b/tests/functional/cli/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/test_black.py b/tests/functional/cli/test_black.py similarity index 99% rename from tests/test_black.py rename to tests/functional/cli/test_black.py index 396e737b8..ed8a0377b 100644 --- a/tests/test_black.py +++ b/tests/functional/cli/test_black.py @@ -11,7 +11,7 @@ from jupytext.compare import compare, compare_cells, compare_notebooks from jupytext.header import _DEFAULT_NOTEBOOK_METADATA -from .utils import list_notebooks, requires_autopep8, requires_black, requires_flake8 +from ...utils import list_notebooks, requires_autopep8, requires_black, requires_flake8 @requires_black diff --git a/tests/test_cli.py b/tests/functional/cli/test_cli.py similarity index 99% rename from tests/test_cli.py rename to tests/functional/cli/test_cli.py index 1b613b175..d04c614f2 100644 --- a/tests/test_cli.py +++ b/tests/functional/cli/test_cli.py @@ -19,7 +19,7 @@ from jupytext.formats import JupytextFormatError, long_form_one_format from jupytext.paired_paths import InconsistentPath, paired_paths -from .utils import ( +from ...utils import ( list_notebooks, requires_jupytext_installed, requires_myst, diff --git a/tests/test_cli_check.py b/tests/functional/cli/test_cli_check.py similarity index 96% rename from tests/test_cli_check.py rename to tests/functional/cli/test_cli_check.py index cbc469441..3fe4e4782 100644 --- a/tests/test_cli_check.py +++ b/tests/functional/cli/test_cli_check.py @@ -4,7 +4,7 @@ from jupytext import write from jupytext.cli import jupytext -from .utils import requires_black +from ...utils import requires_black @pytest.fixture diff --git a/tests/test_cli_config.py b/tests/functional/cli/test_cli_config.py similarity index 100% rename from tests/test_cli_config.py rename to tests/functional/cli/test_cli_config.py diff --git a/tests/test_execute.py b/tests/functional/cli/test_execute.py similarity index 99% rename from tests/test_execute.py rename to tests/functional/cli/test_execute.py index b1c65fb53..cfa44a35c 100644 --- a/tests/test_execute.py +++ b/tests/functional/cli/test_execute.py @@ -7,7 +7,7 @@ from jupytext.cli import jupytext from jupytext.version import __version__ -from .utils import ( +from ...utils import ( requires_ir_kernel, requires_nbconvert, requires_user_kernel_python3, diff --git a/tests/test_isort.py b/tests/functional/cli/test_isort.py similarity index 95% rename from tests/test_isort.py rename to tests/functional/cli/test_isort.py index 0c03ca17e..b59da9ef2 100644 --- a/tests/test_isort.py +++ b/tests/functional/cli/test_isort.py @@ -2,7 +2,7 @@ from jupytext.cli import pipe_notebook from jupytext.compare import compare -from .utils import requires_isort +from ...utils import requires_isort @requires_isort