Skip to content

Commit

Permalink
Auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fmilthaler committed Oct 1, 2023
1 parent 7fed1bf commit 1860dd8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_momentum_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def test_mpl_macd():
axes4_ylabel_orig = "Volume $10^{6}$"
# Create sample data for testing
x = np.sin(np.linspace(1, 10, 100))
df = pd.DataFrame({"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D"))
df = pd.DataFrame(
{"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D")
)
df.name = "DIS"

# Call mpl_macd function
Expand All @@ -81,10 +83,13 @@ def test_mpl_macd():
assert axes0_ylabel_orig == axes0_ylabel_plot
assert axes4_ylabel_orig == axes4_ylabel_plot


def test_mpl_macd_invalid_window_parameters():
# Create sample data with invalid window parameters
x = np.sin(np.linspace(1, 10, 100))
df = pd.DataFrame({"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D"))
df = pd.DataFrame(
{"Close": x}, index=pd.date_range("2015-01-01", periods=100, freq="D")
)
df.name = "DIS"

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

0 comments on commit 1860dd8

Please sign in to comment.