Remove stale debug statements from tests (#51059)
parent
2eb87b8806
commit
c5383219f1
tests
auth/providers
components
caldav
here_travel_time
samsungtv
sonarr
template
helpers
|
@ -296,7 +296,6 @@ async def test_trusted_group_login(manager_with_user, provider_with_user):
|
|||
|
||||
schema = step["data_schema"]
|
||||
# only user listed
|
||||
print(user.id)
|
||||
assert schema({"user": user.id})
|
||||
with pytest.raises(vol.Invalid):
|
||||
assert schema({"user": owner.id})
|
||||
|
|
|
@ -401,8 +401,6 @@ async def test_ongoing_floating_event_returned(mock_now, hass, calendar):
|
|||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("calendar.private")
|
||||
print(dt.DEFAULT_TIME_ZONE)
|
||||
print(state)
|
||||
assert state.name == calendar.name
|
||||
assert state.state == STATE_ON
|
||||
assert dict(state.attributes) == {
|
||||
|
|
|
@ -83,7 +83,6 @@ def _build_mock_url(origin, destination, modes, api_key, departure=None, arrival
|
|||
if departure is None and arrival is None:
|
||||
parameters["departure"] = "now"
|
||||
url = base_url + urllib.parse.urlencode(parameters)
|
||||
print(url)
|
||||
return url
|
||||
|
||||
|
||||
|
|
|
@ -153,7 +153,6 @@ async def test_websocket_api(hass, generic_data, hass_ws_client):
|
|||
|
||||
# Test set config parameter
|
||||
config_param = result[0]
|
||||
print(config_param)
|
||||
current_val = config_param[ATTR_VALUE]
|
||||
new_val = next(
|
||||
option[0]
|
||||
|
|
|
@ -728,7 +728,6 @@ async def test_autodetect_legacy(hass: HomeAssistant, remote: Mock):
|
|||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN, context={"source": config_entries.SOURCE_USER}, data=MOCK_USER_DATA
|
||||
)
|
||||
print(result)
|
||||
assert result["type"] == "create_entry"
|
||||
assert result["data"][CONF_METHOD] == "legacy"
|
||||
assert remote.call_count == 1
|
||||
|
|
|
@ -109,7 +109,6 @@ async def test_disabled_by_default_sensors(
|
|||
"""Test the disabled by default sensors."""
|
||||
await setup_integration(hass, aioclient_mock)
|
||||
registry = er.async_get(hass)
|
||||
print(registry.entities)
|
||||
|
||||
state = hass.states.get(entity_id)
|
||||
assert state is None
|
||||
|
|
|
@ -435,7 +435,6 @@ async def test_on_action_with_transition(hass, calls):
|
|||
)
|
||||
|
||||
assert len(calls) == 1
|
||||
print(calls[0].data)
|
||||
assert calls[0].data["transition"] == 5
|
||||
|
||||
|
||||
|
|
|
@ -946,7 +946,6 @@ async def test_entity_info_added_to_entity_registry(hass):
|
|||
registry = er.async_get(hass)
|
||||
|
||||
entry_default = registry.async_get_or_create(DOMAIN, DOMAIN, "default")
|
||||
print(entry_default)
|
||||
assert entry_default.capabilities == {"max": 100}
|
||||
assert entry_default.supported_features == 5
|
||||
assert entry_default.device_class == "mock-device-class"
|
||||
|
|
|
@ -218,7 +218,6 @@ def test_customize_dict_schema():
|
|||
values = ({ATTR_FRIENDLY_NAME: None}, {ATTR_ASSUMED_STATE: "2"})
|
||||
|
||||
for val in values:
|
||||
print(val)
|
||||
with pytest.raises(MultipleInvalid):
|
||||
config_util.CUSTOMIZE_DICT_SCHEMA(val)
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ def test_conditionerror_format():
|
|||
)
|
||||
|
||||
error_container1 = ConditionErrorContainer("box", errors=[error_pos1, error_pos2])
|
||||
print(error_container1)
|
||||
assert (
|
||||
str(error_container1)
|
||||
== """In 'box' (item 1 of 2):
|
||||
|
|
Loading…
Reference in New Issue