mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Move fixtures to decorators in core tests (#119675)
This commit is contained in:
@@ -20,7 +20,8 @@ def test_sockets_disabled() -> None:
|
||||
socket.socket()
|
||||
|
||||
|
||||
def test_sockets_enabled(socket_enabled: None) -> None:
|
||||
@pytest.mark.usefixtures("socket_enabled")
|
||||
def test_sockets_enabled() -> None:
|
||||
"""Test we can't connect to an address different from 127.0.0.1."""
|
||||
mysocket = socket.socket()
|
||||
with pytest.raises(pytest_socket.SocketConnectBlockedError):
|
||||
|
||||
Reference in New Issue
Block a user