Skip to content

Commit 1860dd8

Browse files
committed
Auto formatting
1 parent 7fed1bf commit 1860dd8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_momentum_indicators.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def test_mpl_macd():
6565
axes4_ylabel_orig = "Volume $10^{6}$"
6666
# Create sample data for testing
6767
x = np.sin(np.linspace(1, 10, 100))
68-
df = pd.DataFrame({"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D"))
68+
df = pd.DataFrame(
69+
{"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D")
70+
)
6971
df.name = "DIS"
7072

7173
# Call mpl_macd function
@@ -81,10 +83,13 @@ def test_mpl_macd():
8183
assert axes0_ylabel_orig == axes0_ylabel_plot
8284
assert axes4_ylabel_orig == axes4_ylabel_plot
8385

86+
8487
def test_mpl_macd_invalid_window_parameters():
8588
# Create sample data with invalid window parameters
8689
x = np.sin(np.linspace(1, 10, 100))
87-
df = pd.DataFrame({"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D"))
90+
df = pd.DataFrame(
91+
{"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D")
92+
)
8893
df.name = "DIS"
8994

9095
# Call mpl_macd function with invalid window parameters and check for ValueError

0 commit comments

Comments
 (0)