Skip to content

Commit

Permalink
Fix remaining unit test entries
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbarrancos committed Oct 13, 2023
1 parent 9838e78 commit d60fc1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pandas_ta/momentum/tmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def tmo(

main_signal.name = f"TMO_{params}"
smooth_signal.name = f"TMO_Smooth_{params}"
mom_main.name = f"TMO_Main_Mom_{params}"
mom_main.name = f"TMO_Mom_{params}"
mom_smooth.name = f"TMO_Smooth_Mom_{params}"

df = DataFrame({
Expand All @@ -146,4 +146,4 @@ def tmo(
df.name = f"TMO_{params}"
df.category = tmo_category

return df
return df
8 changes: 4 additions & 4 deletions tests/test_indicator_momentum.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,10 +778,10 @@ def test_ext_td_seq(df):
assert list(df.columns[-2:]) == ["TD_SEQ_UPa", "TD_SEQ_DNa"]


def test_tmo(self):
result = pandas_ta.tmo(self.open, self.close)
self.assertIsInstance(result, DataFrame)
self.assertEqual(result.name, "TMO_14_5_3")
def test_tmo(df):
df.ta.tmo(append=True)
columns = ["TMO_14_5_3", "TMO_Smooth_14_5_3", "TMO_Mom_14_5_3", "TMO_Smooth_Mom_14_5_3"]
assert list(df.columns[-4:]) == "columns"


def test_ext_trix(df):
Expand Down

0 comments on commit d60fc1a

Please sign in to comment.