@@ -40,7 +40,7 @@ async def test_scan_players(client):
4040 mock_request .return_value = {"status" : "success" , "message" : "Scan complete." }
4141 result = await client .async_scan_players ()
4242 mock_request .assert_called_once_with (
43- method = "POST " , path = "/players/scan" , authenticated = True
43+ method = "PUT " , path = "/players/scan" , authenticated = True
4444 )
4545 assert result .status == "success"
4646
@@ -90,7 +90,7 @@ async def test_get_all_settings(client):
9090 }
9191 result = await client .async_get_all_settings ()
9292 mock_request .assert_called_once_with (
93- method = "GET" , path = "/settings" , authenticated = True
93+ method = "GET" , path = "/settings/get " , authenticated = True
9494 )
9595 assert result .settings ["web" ]["port" ] == 8080
9696
@@ -104,7 +104,7 @@ async def test_set_setting(client):
104104 result = await client .async_set_setting (payload )
105105 mock_request .assert_called_once_with (
106106 method = "POST" ,
107- path = "/settings" ,
107+ path = "/settings/set " ,
108108 json_data = payload .model_dump (),
109109 authenticated = True ,
110110 )
@@ -121,7 +121,7 @@ async def test_reload_settings(client):
121121 }
122122 result = await client .async_reload_settings ()
123123 mock_request .assert_called_once_with (
124- method = "POST " , path = "/settings/reload" , authenticated = True
124+ method = "PUT " , path = "/settings/reload" , authenticated = True
125125 )
126126 assert result .status == "success"
127127
@@ -137,7 +137,7 @@ async def test_prune_downloads(client):
137137 }
138138 result = await client .async_prune_downloads (payload )
139139 mock_request .assert_called_once_with (
140- method = "POST " ,
140+ method = "PUT " ,
141141 path = "/downloads/prune" ,
142142 json_data = payload .model_dump (),
143143 authenticated = True ,
0 commit comments