Cleaned Up tests

This commit is contained in:
Kevin Veen-Birkenbach
2025-12-09 14:33:32 +01:00
parent d50891dfe5
commit a4efb847ba
47 changed files with 4 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
# pkgmgr/cli_core/commands/branch.py
from __future__ import annotations from __future__ import annotations
import sys import sys

View File

@@ -1,4 +1,3 @@
# pkgmgr/cli_core/commands/release.py
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
@@ -6,8 +5,8 @@
Release command wiring for the pkgmgr CLI. Release command wiring for the pkgmgr CLI.
This module implements the `pkgmgr release` subcommand on top of the This module implements the `pkgmgr release` subcommand on top of the
generic selection logic from cli_core.dispatch. It does not define its generic selection logic from cli.dispatch. It does not define its
own subparser; the CLI surface is configured in cli_core.parser. own subparser; the CLI surface is configured in cli.parser.
Responsibilities: Responsibilities:
- Take the parsed argparse.Namespace for the `release` command. - Take the parsed argparse.Namespace for the `release` command.

View File

@@ -1,5 +1,3 @@
# tests/integration/test_install_repos_integration.py
import os import os
import tempfile import tempfile
import unittest import unittest

View File

View File

@@ -6,7 +6,7 @@ Unit tests for pkgmgr.cli.commands.release.
These tests focus on the wiring layer: These tests focus on the wiring layer:
- Argument handling for the release command as defined by the - Argument handling for the release command as defined by the
top-level parser (cli_core.parser.create_parser). top-level parser (cli.parser.create_parser).
- Correct invocation of pkgmgr.actions.release.release(...) for the - Correct invocation of pkgmgr.actions.release.release(...) for the
selected repositories. selected repositories.
- Behaviour of --preview, --list, --close, and -f/--force. - Behaviour of --preview, --list, --close, and -f/--force.

View File

@@ -22,7 +22,7 @@ from pkgmgr.cli.commands.branch import handle_branch
class TestBranchCLI(unittest.TestCase): class TestBranchCLI(unittest.TestCase):
""" """
Tests for the branch subcommands implemented in cli_core. Tests for the branch subcommands implemented in cli.
""" """
def _create_parser(self): def _create_parser(self):

View File