1+ """ Test for PV live data """
12from datetime import datetime
23
34import pandas as pd
@@ -14,8 +15,8 @@ def test_load_gsp_raw_data_from_pvlive_one_gsp_one_day():
1415 Test that one gsp system data can be loaded, just for one day
1516 """
1617
17- start = datetime (2019 , 1 , 1 , tzinfo = pytz .utc )
18- end = datetime (2019 , 1 , 2 , tzinfo = pytz .utc )
18+ start = datetime (2021 , 1 , 1 , tzinfo = pytz .utc )
19+ end = datetime (2021 , 1 , 2 , tzinfo = pytz .utc )
1920
2021 gsp_pv_df = load_pv_gsp_raw_data_from_pvlive (start = start , end = end , number_of_gsp = 1 )
2122
@@ -31,8 +32,8 @@ def test_load_gsp_raw_data_from_pvlive_one_gsp_one_day_not_normalised():
3132 """
3233
3334 # pick a summer day
34- start = datetime (2019 , 6 , 21 , tzinfo = pytz .utc )
35- end = datetime (2019 , 6 , 22 , tzinfo = pytz .utc )
35+ start = datetime (2021 , 6 , 21 , tzinfo = pytz .utc )
36+ end = datetime (2021 , 6 , 22 , tzinfo = pytz .utc )
3637
3738 gsp_pv_df = load_pv_gsp_raw_data_from_pvlive (
3839 start = start , end = end , number_of_gsp = 1 , normalize_data = False
@@ -46,12 +47,12 @@ def test_load_gsp_raw_data_from_pvlive_one_gsp_one_day_not_normalised():
4647
4748
4849def test_load_gsp_raw_data_from_pvlive_one_gsp ():
49- """a
50+ """
5051 Test that one gsp system data can be loaded
5152 """
5253
53- start = datetime (2019 , 1 , 1 , tzinfo = pytz .utc )
54- end = datetime (2019 , 3 , 1 , tzinfo = pytz .utc )
54+ start = datetime (2021 , 1 , 1 , tzinfo = pytz .utc )
55+ end = datetime (2021 , 3 , 1 , tzinfo = pytz .utc )
5556
5657 gsp_pv_df = load_pv_gsp_raw_data_from_pvlive (start = start , end = end , number_of_gsp = 1 )
5758
@@ -67,8 +68,8 @@ def test_load_gsp_raw_data_from_pvlive_many_gsp():
6768 Test that one gsp system data can be loaded
6869 """
6970
70- start = datetime (2019 , 1 , 1 , tzinfo = pytz .utc )
71- end = datetime (2019 , 1 , 2 , tzinfo = pytz .utc )
71+ start = datetime (2021 , 1 , 1 , tzinfo = pytz .utc )
72+ end = datetime (2021 , 1 , 2 , tzinfo = pytz .utc )
7273
7374 gsp_pv_df = load_pv_gsp_raw_data_from_pvlive (start = start , end = end , number_of_gsp = 10 )
7475
@@ -79,6 +80,9 @@ def test_load_gsp_raw_data_from_pvlive_many_gsp():
7980
8081
8182def test_get_installed_capacity ():
83+ """
84+ Test thhat we can get installed capacity
85+ """
8286
8387 installed_capacity = get_installed_capacity (maximum_number_of_gsp = 10 )
8488
0 commit comments