Skip to content

Commit

Permalink
tests: remove unnecessary http.disable() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
abn authored and neersighted committed Mar 23, 2024
1 parent 09a0f24 commit 2e3f10b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions tests/console/commands/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions tests/console/commands/test_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@


if TYPE_CHECKING:
import httpretty

from cleo.testers.command_tester import CommandTester

from poetry.poetry import Poetry
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 2e3f10b

Please sign in to comment.