Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing tests #775

Closed
Rossco8 opened this issue Mar 10, 2024 · 5 comments
Closed

Failing tests #775

Rossco8 opened this issue Mar 10, 2024 · 5 comments

Comments

@Rossco8
Copy link

Rossco8 commented Mar 10, 2024

I'm having a look at the 3 tests that are failing.

FAILED tests/test_indicator_momentum.py::test_ppo - AttributeError: 'DataFram...
FAILED tests/test_indicator_overlap.py::test_mama - AttributeError: 'DataFram...
FAILED tests/test_indicator_trend.py::test_adx - AttributeError: 'DataFrame' ...

Looks like the pandas-ta version of these indicators return a Dataframe, the ta-lib returns a Series, so the pdt.assert_series_equal(result, expected, check_names=False) is throwing an error.

Is it an acceptable fix to these 3 tests to extract the relevant series from the pandas-ta result and pass that to assert_series_equal. For example

ta_result = result['PPO_12_26_9']
expected = tal.PPO(df['Close'])
pdt.assert_series_equal(ta_result, expected, check_names=False)

If so, I'll submit a PR

@twopirllc
Copy link
Owner

Hi @Rossco8,

First, thanks for all the help and the contributions you have recently made. I will address and get to them shortly. 😎

Yes, I have come across similar failing tests asserting the incorrect data type, Series or DataFrame. These should be addressed in the upcoming development update including the indicators you have listed.

Before we do any more work, let me get this updated development pushed this week and then we can tackle issues and fixes more in sync. 😎

@twopirllc
Copy link
Owner

Hi @Rossco8

Just updated the development branch. Let me know if you still get those fails.

KJ

@Rossco8
Copy link
Author

Rossco8 commented Mar 17, 2024

Hi @twopirllc yes looks like the tests are now fixed on the development branch. Except my PR for the PVI indicator fix is failing. Any suggestions why? I updated the tests in test_indicator_volume.py, but they still fail when run in the GH workflow

@twopirllc
Copy link
Owner

@Rossco8

I think we can close this no? I am not getting test errors on my end nor GA actions on my PRs.

@Rossco8
Copy link
Author

Rossco8 commented Jul 30, 2024

Yep @twopirllc happy to clsoe this one

@Rossco8 Rossco8 closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants