55# @File : test_load.py
66# @Software: PyCharm
77
8- import pytest
98import platform
109
10+ import pytest
11+
1112
1213class TestLoad13Bus :
1314
@@ -123,11 +124,11 @@ def test_loads_read_cvr_curve(self, dss):
123124
124125 def test_loads_write_cvr_curve (self , dss ):
125126 dss .text ("New Loadshape.Test npts=24 interval=1 "
126- "mult= "
127- "(0.18000001 0.19000000 0.23999999 0.33000001 0.38999999 0.41000000 "
128- "0.64999998 1.23000002 1.88999999 1.88999999 1.96000004 1.98000002 "
129- "1.45000005 1.62000000 1.88999999 1.79999995 1.78999996 1.19000006 "
130- "0.80000001 0.66000003 0.51999998 0.40000001 0.28000000 0.23000000)" )
127+ "mult= "
128+ "(0.18000001 0.19000000 0.23999999 0.33000001 0.38999999 0.41000000 "
129+ "0.64999998 1.23000002 1.88999999 1.88999999 1.96000004 1.98000002 "
130+ "1.45000005 1.62000000 1.88999999 1.79999995 1.78999996 1.19000006 "
131+ "0.80000001 0.66000003 0.51999998 0.40000001 0.28000000 0.23000000)" )
131132 expected = 'Test'
132133 dss .loads_write_cvr_curve (expected )
133134 actual = dss .loads_read_cvr_curve ()
@@ -140,11 +141,11 @@ def test_loads_read_daily(self, dss):
140141
141142 def test_loads_write_daily (self , dss ):
142143 dss .text ("New Loadshape.Test npts=24 interval=1 "
143- "mult= "
144- "(0.18000001 0.19000000 0.23999999 0.33000001 0.38999999 0.41000000 "
145- "0.64999998 1.23000002 1.88999999 1.88999999 1.96000004 1.98000002 "
146- "1.45000005 1.62000000 1.88999999 1.79999995 1.78999996 1.19000006 "
147- "0.80000001 0.66000003 0.51999998 0.40000001 0.28000000 0.23000000)" )
144+ "mult= "
145+ "(0.18000001 0.19000000 0.23999999 0.33000001 0.38999999 0.41000000 "
146+ "0.64999998 1.23000002 1.88999999 1.88999999 1.96000004 1.98000002 "
147+ "1.45000005 1.62000000 1.88999999 1.79999995 1.78999996 1.19000006 "
148+ "0.80000001 0.66000003 0.51999998 0.40000001 0.28000000 0.23000000)" )
148149 expected = 'Test'
149150 dss .loads_write_daily (expected )
150151 actual = dss .loads_read_daily ()
@@ -162,10 +163,10 @@ def test_loads_read_spectrum(self, dss):
162163
163164 def test_loads_write_spectrum (self , dss ):
164165 dss .text ("New Spectrum.Test "
165- "NumHarm=7 "
166- "harmonic=(1, 3, 5, 7, 9, 11, 13, ) "
167- "%mag=(100, 1.5, 20, 14, 1, 9, 7, ) "
168- "angle=(0, 180, 180, 180, 180, 180, 180, )" )
166+ "NumHarm=7 "
167+ "harmonic=(1, 3, 5, 7, 9, 11, 13, ) "
168+ "%mag=(100, 1.5, 20, 14, 1, 9, 7, ) "
169+ "angle=(0, 180, 180, 180, 180, 180, 180, )" )
169170 expected = 'Test'
170171 dss .loads_write_spectrum (expected )
171172 actual = dss .loads_read_spectrum ()
@@ -178,11 +179,11 @@ def test_loads_read_yearly(self, dss):
178179
179180 def test_loads_write_yearly (self , dss ):
180181 dss .text ("New Loadshape.Test npts=24 interval=1 "
181- "mult= "
182- "(0.18000001 0.19000000 0.23999999 0.33000001 0.38999999 0.41000000 "
183- "0.64999998 1.23000002 1.88999999 1.88999999 1.96000004 1.98000002 "
184- "1.45000005 1.62000000 1.88999999 1.79999995 1.78999996 1.19000006 "
185- "0.80000001 0.66000003 0.51999998 0.40000001 0.28000000 0.23000000)" )
182+ "mult= "
183+ "(0.18000001 0.19000000 0.23999999 0.33000001 0.38999999 0.41000000 "
184+ "0.64999998 1.23000002 1.88999999 1.88999999 1.96000004 1.98000002 "
185+ "1.45000005 1.62000000 1.88999999 1.79999995 1.78999996 1.19000006 "
186+ "0.80000001 0.66000003 0.51999998 0.40000001 0.28000000 0.23000000)" )
186187 expected = 'Test'
187188 dss .loads_write_yearly (expected )
188189 actual = dss .loads_read_yearly ()
0 commit comments