Skip to content

Commit fddc2fa

Browse files
Unit test fixes
1 parent 43ff9ee commit fddc2fa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/predbat/unit_test.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,12 @@ def run_nordpool_test(my_predbat):
372372
my_predbat.args["futurerate_adjust_export"] = True
373373
failed = False
374374

375-
fixed = my_predbat.download_octopus_rates("https://api.octopus.energy/v1/products/OUTGOING-FIX-12M-BB-23-02-09/electricity-tariffs/E-1R-OUTGOING-FIX-12M-BB-23-02-09-A/standard-unit-rates/")
375+
fixed = my_predbat.download_octopus_rates("https://api.octopus.energy/v1/products/OUTGOING-SEG-EO-FIX-12M-24-04-05/electricity-tariffs/E-1R-OUTGOING-SEG-EO-FIX-12M-24-04-05-A/standard-unit-rates/")
376376
if max(fixed.values()) <= 0:
377377
print("ERROR: Fixed rates can not be zero")
378378
failed = True
379379
if min(fixed.values()) != max(fixed.values()):
380-
print("ERROR: Fixed rates can can change")
380+
print("ERROR: Fixed rates can not change")
381381
failed = True
382382
if len(fixed) > 5 * 24 * 60:
383383
print("ERROR: Fixed rates too long got {}".format(len(fixed)))
@@ -8911,8 +8911,6 @@ def test_minute_data(my_predbat):
89118911
print(" {}: {}".format(key, result[key]))
89128912
failed = True
89138913

8914-
failed = True
8915-
89168914
# Test 4.1: Smoothing clean increment
89178915
print("Test 4.1: Smoothing clean increment")
89188916
result = my_predbat.minute_data(

0 commit comments

Comments
 (0)