From fe6538ae6019722a2a36a8296df8cb48f8a22511 Mon Sep 17 00:00:00 2001 From: "Meinel, Michael" Date: Fri, 9 Feb 2024 16:24:45 +0100 Subject: [PATCH] Start a little refactoring to make the Python packages more consistent --- src/hermes/__main__.py | 2 +- src/hermes/{ => commands}/cli.py | 2 +- test/hermes_test/test_cli.py | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) rename src/hermes/{ => commands}/cli.py (98%) diff --git a/src/hermes/__main__.py b/src/hermes/__main__.py index b9400fcb..1c34b520 100644 --- a/src/hermes/__main__.py +++ b/src/hermes/__main__.py @@ -4,7 +4,7 @@ # SPDX-FileContributor: Michael Meinel -from hermes.cli import main +from hermes.commands.cli import main if __name__ == '__main__': diff --git a/src/hermes/cli.py b/src/hermes/commands/cli.py similarity index 98% rename from src/hermes/cli.py rename to src/hermes/commands/cli.py index 38c369d9..0997aa50 100644 --- a/src/hermes/cli.py +++ b/src/hermes/commands/cli.py @@ -91,7 +91,7 @@ def main(*args, **kwargs) -> None: # Arguments parser.add_argument( - "--path", default=pathlib.Path("./"), help="Working path", type=pathlib.Path + "--path", default=pathlib.Path("../"), help="Working path", type=pathlib.Path ) parser.add_argument( "--config", diff --git a/test/hermes_test/test_cli.py b/test/hermes_test/test_cli.py index c3047743..fe56e549 100644 --- a/test/hermes_test/test_cli.py +++ b/test/hermes_test/test_cli.py @@ -4,13 +4,10 @@ # SPDX-FileContributor: Michael Meinel -import pathlib -from unittest import mock import pytest -from hermes import cli +from hermes.commands import cli from hermes.commands.deposit.error import DepositionUnauthorizedError -from hermes_test.mocks import mock_command def test_hermes_full(capsys):