ran black
modified:   tests/test_function_helpers.py
@@ -87,13 +87,16 @@ idftxt = """Version,8.0;
# test_true_azimuth() - done using @pytest.mark.parametrize
# see https://docs.pytest.org/en/stable/parametrize.html
-@pytest.mark.parametrize('coord_system, bldg_north, zone_rel_north, expected', [
+@pytest.mark.parametrize(
+ "coord_system, bldg_north, zone_rel_north, expected",
+ [
("Relative", 45, 30, 180 + 75),
# coord_system, bldg_north, zone_rel_north, expected,
("Relative", "", 0, 180 + 0),
("World", 45, "", 180),
("Relative", 240, 90, 180 + 330 - 360),
-])
+ ],
+)
def test_true_azimuth(coord_system, bldg_north, zone_rel_north, expected):
"""py.test for true_azimuth"""
fhandle = StringIO(idftxt)
@@ -109,6 +112,7 @@ def test_true_azimuth(coord_system, bldg_north, zone_rel_north, expected):
result = fh.true_azimuth(surface)
assert almostequal(expected, result, places=3) == True
+
def test_true_azimuth_exception():
"""py.test for true_azimuth exception"""
coord_system, bldg_north, zone_rel_north = (
@@ -130,4 +134,3 @@ def test_true_azimuth_exception():
with pytest.raises(ValueError):
result = fh.true_azimuth(surface)
-
\ No newline at end of file
