Skip to content

Commit 483ce55

Browse files
committed
Fixing style errors.
1 parent 7a3e3a0 commit 483ce55

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/test_data_handling.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@ def setup_class(cls):
2222
cls.time_stamp = datetime.now().strftime("%Y%m%d%H%M%S")
2323
cls.broken_fn = os.path.join(cls.path, "power_curves_broken.csv")
2424
cls.backup_fn = os.path.join(cls.path, "power_curves_backup.csv")
25-
cls.orig_path = os.path.join(os.path.dirname(__file__), os.pardir,
26-
"windpowerlib", "oedb")
25+
cls.orig_path = os.path.join(
26+
os.path.dirname(__file__), os.pardir, "windpowerlib", "oedb"
27+
)
2728
cls.orig_fn = os.path.join(cls.orig_path, "power_curves.csv")
2829

2930
@classmethod
3031
def teardown_class(cls):
3132
cls.path = os.path.join(os.path.dirname(__file__), "oedb")
3233
cls.backup_fn = os.path.join(cls.path, "power_curves_backup.csv")
33-
orig_path = os.path.join(os.path.dirname(__file__), os.pardir,
34-
"windpowerlib", "oedb")
34+
orig_path = os.path.join(
35+
os.path.dirname(__file__), os.pardir, "windpowerlib", "oedb"
36+
)
3537
cls.orig_fn = os.path.join(orig_path, "power_curves.csv")
3638
copyfile(cls.backup_fn, cls.orig_fn)
3739
for f in os.listdir(cls.path):
@@ -46,8 +48,9 @@ def test_normal_data_check(self):
4648
for curve_type in ["power_curve", "power_coefficient_curve"]:
4749
copyfile(
4850
self.filename.format("{}s".format(curve_type)),
49-
self.filename.format("{0}s_{1}".format(curve_type,
50-
self.time_stamp)),
51+
self.filename.format(
52+
"{0}s_{1}".format(curve_type, self.time_stamp)
53+
),
5154
)
5255
check_imported_data(self.df, self.filename, self.time_stamp)
5356

@@ -71,4 +74,3 @@ def test_broken_pwr_curve(self):
7174
msg = "could not convert string to float"
7275
with pytest.raises(ValueError, match=msg):
7376
check_imported_data(self.df, self.filename, self.time_stamp)
74-

0 commit comments

Comments
 (0)