Skip to content

Commit

Permalink
Start a little refactoring to make the Python packages more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
led02 committed Feb 21, 2024
1 parent 8a1bab8 commit 00e4ba5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/hermes/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

# SPDX-FileContributor: Michael Meinel

from hermes.cli import main
from hermes.commands.cli import main


if __name__ == '__main__':
if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion src/hermes/cli.py → src/hermes/commands/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions test/hermes_test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 00e4ba5

Please sign in to comment.