@@ -333,12 +333,12 @@ def test_update(mock_request, customer_details, status_schedule):
333
333
mock_request .assert_has_calls (
334
334
[
335
335
mock .call (
336
- "https://app .hydrawise.com/api/v1/customerdetails.php" ,
336
+ "https://api .hydrawise.com/api/v1/customerdetails.php" ,
337
337
params = {"api_key" : API_KEY , "type" : "controllers" },
338
338
timeout = 10 ,
339
339
),
340
340
mock .call (
341
- "https://app .hydrawise.com/api/v1/statusschedule.php" ,
341
+ "https://api .hydrawise.com/api/v1/statusschedule.php" ,
342
342
params = {"api_key" : API_KEY },
343
343
timeout = 10 ,
344
344
),
@@ -399,7 +399,7 @@ def test_suspend_zone(mock_request, success_status):
399
399
with freeze_time ("1970-01-01 00:00:00" ) as t :
400
400
assert client .suspend_zone (1 , 1 ) == success_status
401
401
mock_request .assert_called_once_with (
402
- "https://app .hydrawise.com/api/v1/setzone.php" ,
402
+ "https://api .hydrawise.com/api/v1/setzone.php" ,
403
403
params = {
404
404
"api_key" : API_KEY ,
405
405
"action" : "suspend" ,
@@ -421,7 +421,7 @@ def test_suspend_zone_unsuspend(mock_request, success_status):
421
421
with freeze_time ("1970-01-01 00:00:00" ) as t :
422
422
assert client .suspend_zone (0 , 1 ) == success_status
423
423
mock_request .assert_called_once_with (
424
- "https://app .hydrawise.com/api/v1/setzone.php" ,
424
+ "https://api .hydrawise.com/api/v1/setzone.php" ,
425
425
params = {
426
426
"api_key" : API_KEY ,
427
427
"action" : "suspend" ,
@@ -442,7 +442,7 @@ def test_suspend_zone_all(mock_request, success_status):
442
442
with freeze_time ("1970-01-01 00:00:00" ) as t :
443
443
assert client .suspend_zone (1 ) == success_status
444
444
mock_request .assert_called_once_with (
445
- "https://app .hydrawise.com/api/v1/setzone.php" ,
445
+ "https://api .hydrawise.com/api/v1/setzone.php" ,
446
446
params = {
447
447
"api_key" : API_KEY ,
448
448
"action" : "suspendall" ,
@@ -463,7 +463,7 @@ def test_run_zone(mock_request, success_status):
463
463
with freeze_time ("1970-01-01 00:00:00" ) as t :
464
464
assert client .run_zone (1 , 1 ) == success_status
465
465
mock_request .assert_called_once_with (
466
- "https://app .hydrawise.com/api/v1/setzone.php" ,
466
+ "https://api .hydrawise.com/api/v1/setzone.php" ,
467
467
params = {
468
468
"api_key" : API_KEY ,
469
469
"action" : "run" ,
@@ -485,7 +485,7 @@ def test_run_zone_all(mock_request, success_status):
485
485
with freeze_time ("1970-01-01 00:00:00" ) as t :
486
486
assert client .run_zone (1 ) == success_status
487
487
mock_request .assert_called_once_with (
488
- "https://app .hydrawise.com/api/v1/setzone.php" ,
488
+ "https://api .hydrawise.com/api/v1/setzone.php" ,
489
489
params = {
490
490
"api_key" : API_KEY ,
491
491
"action" : "runall" ,
@@ -506,7 +506,7 @@ def test_run_zone_stop(mock_request, success_status):
506
506
with freeze_time ("1970-01-01 00:00:00" ) as t :
507
507
assert client .run_zone (0 , 1 ) == success_status
508
508
mock_request .assert_called_once_with (
509
- "https://app .hydrawise.com/api/v1/setzone.php" ,
509
+ "https://api .hydrawise.com/api/v1/setzone.php" ,
510
510
params = {
511
511
"api_key" : API_KEY ,
512
512
"action" : "stop" ,
@@ -527,7 +527,7 @@ def test_run_zone_stop_all(mock_request, success_status):
527
527
with freeze_time ("1970-01-01 00:00:00" ) as t :
528
528
assert client .run_zone (0 ) == success_status
529
529
mock_request .assert_called_once_with (
530
- "https://app .hydrawise.com/api/v1/setzone.php" ,
530
+ "https://api .hydrawise.com/api/v1/setzone.php" ,
531
531
params = {
532
532
"api_key" : API_KEY ,
533
533
"action" : "stopall" ,
0 commit comments