From 2e3f10bdb1d694a23681b82716b0e9a80b28aef9 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Sat, 23 Mar 2024 18:20:46 +0100 Subject: [PATCH] tests: remove unnecessary http.disable() calls --- tests/console/commands/test_check.py | 8 -------- tests/console/commands/test_lock.py | 8 -------- 2 files changed, 16 deletions(-) diff --git a/tests/console/commands/test_check.py b/tests/console/commands/test_check.py index b56ebf89cb2..67cfef8410b 100644 --- a/tests/console/commands/test_check.py +++ b/tests/console/commands/test_check.py @@ -12,8 +12,6 @@ if TYPE_CHECKING: from typing import Iterator - import httpretty - from cleo.testers.command_tester import CommandTester from pytest_mock import MockerFixture @@ -172,11 +170,8 @@ def test_check_lock_missing( def test_check_lock_outdated( command_tester_factory: CommandTesterFactory, poetry_with_outdated_lockfile: Poetry, - http: type[httpretty.httpretty], options: str, ) -> None: - http.disable() - locker = Locker( lock=poetry_with_outdated_lockfile.pyproject.file.path.parent / "poetry.lock", pyproject_data=poetry_with_outdated_lockfile.locker._pyproject_data, @@ -200,11 +195,8 @@ def test_check_lock_outdated( def test_check_lock_up_to_date( command_tester_factory: CommandTesterFactory, poetry_with_up_to_date_lockfile: Poetry, - http: type[httpretty.httpretty], options: str, ) -> None: - http.disable() - locker = Locker( lock=poetry_with_up_to_date_lockfile.pyproject.file.path.parent / "poetry.lock", pyproject_data=poetry_with_up_to_date_lockfile.locker._pyproject_data, diff --git a/tests/console/commands/test_lock.py b/tests/console/commands/test_lock.py index bdffaf76c6a..38d0c746412 100644 --- a/tests/console/commands/test_lock.py +++ b/tests/console/commands/test_lock.py @@ -10,8 +10,6 @@ if TYPE_CHECKING: - import httpretty - from cleo.testers.command_tester import CommandTester from poetry.poetry import Poetry @@ -92,10 +90,7 @@ def poetry_with_invalid_lockfile( def test_lock_check_outdated_legacy( command_tester_factory: CommandTesterFactory, poetry_with_outdated_lockfile: Poetry, - http: type[httpretty.httpretty], ) -> None: - http.disable() - locker = Locker( lock=poetry_with_outdated_lockfile.pyproject.file.path.parent / "poetry.lock", pyproject_data=poetry_with_outdated_lockfile.locker._pyproject_data, @@ -119,10 +114,7 @@ def test_lock_check_outdated_legacy( def test_lock_check_up_to_date_legacy( command_tester_factory: CommandTesterFactory, poetry_with_up_to_date_lockfile: Poetry, - http: type[httpretty.httpretty], ) -> None: - http.disable() - locker = Locker( lock=poetry_with_up_to_date_lockfile.pyproject.file.path.parent / "poetry.lock", pyproject_data=poetry_with_up_to_date_lockfile.locker._pyproject_data,