Skip to content

Commit

Permalink
Increase test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Feb 18, 2025
1 parent e4a46ca commit ad6ac7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion freva-rest/src/freva_rest/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get_cert_file(
def cli(argv: Optional[List[str]] = None) -> None:
"""Start the freva rest API."""
cfg = ServerConfig()
parser = create_arg_parser(cfg.__fields__, ["api-services"])
parser = create_arg_parser(cfg.model_fields, ["api-services"])
parser.add_argument(
"--dev", action="store_true", help="Enable development mode"
)
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def test_rest_cli(mocker: MockerFixture) -> None:
workers=8,
env_file=str(Path(temp_dir) / "foo.txt"),
)
cli(["-V"])


def test_auth(
Expand Down

0 comments on commit ad6ac7b

Please sign in to comment.