Cleaned Up tests
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# pkgmgr/cli_core/commands/branch.py
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# tests/integration/test_install_repos_integration.py
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
0
tests/unit/pkgmgr/actions/repos/__init__.py
Normal file
0
tests/unit/pkgmgr/actions/repos/__init__.py
Normal file
0
tests/unit/pkgmgr/cli/__init__.py
Normal file
0
tests/unit/pkgmgr/cli/__init__.py
Normal file
0
tests/unit/pkgmgr/cli/commands/__init__.py
Normal file
0
tests/unit/pkgmgr/cli/commands/__init__.py
Normal 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.
|
||||||
@@ -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):
|
||||||
0
tests/unit/pkgmgr/core/__init__.py
Normal file
0
tests/unit/pkgmgr/core/__init__.py
Normal file
Reference in New Issue
Block a user