1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-14 06:57:07 +00:00

Speedtestdotnet - use server name to generate server list (#39775)

This commit is contained in:
r4nd0mbr1ck
2020-09-15 15:50:44 +10:00
committed by Bram Kragten
parent ef1649383c
commit db27079fa8
3 changed files with 9 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ MOCK_SERVERS = {
"name": "Server1",
"country": "Country1",
"cc": "LL1",
"sponsor": "Server1",
"sponsor": "Sponsor1",
"id": "1",
"host": "server1:8080",
"d": 1,
@@ -23,7 +23,7 @@ MOCK_SERVERS = {
"name": "Server2",
"country": "Country2",
"cc": "LL2",
"sponsor": "server2",
"sponsor": "Sponsor2",
"id": "2",
"host": "server2:8080",
"d": 2,

View File

@@ -108,7 +108,7 @@ async def test_options(hass):
result = await hass.config_entries.options.async_configure(
result["flow_id"],
user_input={
CONF_SERVER_NAME: "Country1 - Server1",
CONF_SERVER_NAME: "Country1 - Sponsor1 - Server1",
CONF_SCAN_INTERVAL: 30,
CONF_MANUAL: False,
},
@@ -116,7 +116,7 @@ async def test_options(hass):
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result["data"] == {
CONF_SERVER_NAME: "Country1 - Server1",
CONF_SERVER_NAME: "Country1 - Sponsor1 - Server1",
CONF_SERVER_ID: "1",
CONF_SCAN_INTERVAL: 30,
CONF_MANUAL: False,