diff --git a/src/mdio/__main__.py b/src/mdio/__main__.py index 4223f383..5234ff73 100644 --- a/src/mdio/__main__.py +++ b/src/mdio/__main__.py @@ -10,8 +10,9 @@ import click_params import mdio +from mdio.commands.utility import copy +from mdio.commands.utility import info -from mdio.commands.utility import copy, info plugin_folder = os.path.join(os.path.dirname(__file__), "commands") diff --git a/src/mdio/commands/utility.py b/src/mdio/commands/utility.py index 595a2d1a..8f9f6721 100644 --- a/src/mdio/commands/utility.py +++ b/src/mdio/commands/utility.py @@ -1,11 +1,12 @@ """Dataset CLI Plugin.""" try: + from typing import Optional + import click import click_params import mdio - from typing import Optional except SystemError: pass diff --git a/tests/test_main.py b/tests/test_main.py index c2e88b3e..6c7daeb5 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -31,7 +31,7 @@ def test_main_succeeds(runner: CliRunner, segy_input: str, zarr_tmp: Path) -> No @pytest.mark.dependency(depends=["test_main_succeeds"]) def test_main_info_succeeds(runner: CliRunner, zarr_tmp: Path) -> None: """It exits with a status code of zero.""" - cli_args = ["utility", "info"] + cli_args = ["info"] cli_args.extend(["-i", str(zarr_tmp)]) result = runner.invoke(__main__.main, args=cli_args) @@ -41,7 +41,7 @@ def test_main_info_succeeds(runner: CliRunner, zarr_tmp: Path) -> None: @pytest.mark.dependency(depends=["test_main_succeeds"]) def test_main_copy_succeeds(runner: CliRunner, zarr_tmp: Path, zarr_tmp2: Path) -> None: """It exits with a status code of zero.""" - cli_args = ["utility", "copy"] + cli_args = ["copy"] cli_args.extend(["-i", str(zarr_tmp)]) cli_args.extend(["-o", str(zarr_tmp2)])