Remove unused Git.new_branch

This commit is contained in:
Mikhail f. Shiryaev 2024-06-03 13:22:57 +02:00
parent 6f921087f4
commit 05ad1e1b18
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 2 additions and 4 deletions

View File

@ -127,7 +127,6 @@ class Git:
self.run = git_runner.run
self.latest_tag = ""
self.new_tag = ""
self.new_branch = ""
self.branch = ""
self.sha = ""
self.sha_short = ""

View File

@ -1,10 +1,10 @@
#!/usr/bin/env python
from unittest.mock import patch
import os.path as p
import unittest
from unittest.mock import patch
from git_helper import Git, Runner, CWD
from git_helper import CWD, Git, Runner
class TestRunner(unittest.TestCase):
@ -45,7 +45,6 @@ class TestGit(unittest.TestCase):
update_mock.assert_called_once()
self.git.run("test")
self.run_mock.assert_called_once()
self.git.new_branch = "NEW_BRANCH_NAME"
self.git.new_tag = "v21.12.333.22222-stable"
self.git.branch = "old_branch"
self.git.sha = ""