Skip to content

Commit

Permalink
Remove stale debug statements from tests (home-assistant#51059)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored May 25, 2021
1 parent 2eb87b8 commit c538321
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion tests/auth/providers/test_trusted_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 0 additions & 2 deletions tests/components/caldav/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) == {
Expand Down
1 change: 0 additions & 1 deletion tests/components/here_travel_time/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 0 additions & 1 deletion tests/components/ozw/test_websocket_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 0 additions & 1 deletion tests/components/samsungtv/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/components/sonarr/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/components/template/test_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 0 additions & 1 deletion tests/helpers/test_entity_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c538321

Please sign in to comment.