Skip to content

Commit

Permalink
Remove obsolete Terminal mock class in update header test module
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Feb 26, 2024
1 parent ff24399 commit e5e2725
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/updateheader/test_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from unittest.mock import MagicMock, patch

from pontos.errors import PontosError
from pontos.terminal.terminal import ConsoleTerminal
from pontos.testing import temp_directory, temp_file
from pontos.updateheader.updateheader import _add_header as add_header
from pontos.updateheader.updateheader import (
Expand Down Expand Up @@ -41,15 +40,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later"""


_here_ = Path(__file__).parent


class Terminal(ConsoleTerminal):
@staticmethod
def get_width() -> int:
return 999


class GetModifiedYearTestCase(TestCase):
@patch("pontos.updateheader.updateheader.Git")
def test_get_modified_year(self, git_mock):
Expand Down

0 comments on commit e5e2725

Please sign in to comment.