Solved ruff hints
Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / codesniffer-shellcheck (push) Has been cancelled
Mark stable commit / codesniffer-ruff (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / codesniffer-shellcheck (push) Has been cancelled
Mark stable commit / codesniffer-ruff (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import patch, MagicMock
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pkgmgr.actions.branch.utils import _resolve_base_branch
|
from pkgmgr.actions.branch.utils import _resolve_base_branch
|
||||||
from pkgmgr.core.git import GitError
|
from pkgmgr.core.git import GitError
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ class TestCreateInk(unittest.TestCase):
|
|||||||
patch("pkgmgr.core.command.ink.os.chmod") as mock_chmod, \
|
patch("pkgmgr.core.command.ink.os.chmod") as mock_chmod, \
|
||||||
patch("pkgmgr.core.command.ink.os.path.exists", return_value=False), \
|
patch("pkgmgr.core.command.ink.os.path.exists", return_value=False), \
|
||||||
patch("pkgmgr.core.command.ink.os.path.islink", return_value=False), \
|
patch("pkgmgr.core.command.ink.os.path.islink", return_value=False), \
|
||||||
patch("pkgmgr.core.command.ink.os.remove") as mock_remove, \
|
|
||||||
patch("pkgmgr.core.command.ink.os.path.realpath", side_effect=lambda p: p):
|
patch("pkgmgr.core.command.ink.os.path.realpath", side_effect=lambda p: p):
|
||||||
create_ink_module.create_ink(
|
create_ink_module.create_ink(
|
||||||
repo=repo,
|
repo=repo,
|
||||||
|
|||||||
Reference in New Issue
Block a user