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

resolve warnings occuring during pytest #216

Open
siruku6 opened this issue Jul 27, 2022 · 0 comments
Open

resolve warnings occuring during pytest #216

siruku6 opened this issue Jul 27, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@siruku6
Copy link
Owner

siruku6 commented Jul 27, 2022

$ pipenv run pytesst
...

================= warnings summary ==================
...

tests/clients/test_dynamodb_accessor.py::TestInitTable::test_one_table
  /opt/hostedtoolcache/Python/3.8.13/x64/lib/python3.8/site-packages/moto/__init__.py:26: UserWarning: Module mock_dynamodb2 has been deprecated, and will be removed in a later release. Please use mock_dynamodb instead. See https://github.com/spulec/moto/issues/4526 for more information.
    warnings.warn(

tests/test_real_trader.py::test___drive_exit_process_dead_cross
tests/test_real_trader.py::test___drive_exit_process_dead_cross
tests/test_real_trader.py::test___drive_exit_process_dead_cross
tests/test_real_trader.py::test___drive_exit_process_golden_cross
tests/test_real_trader.py::test___drive_exit_process_golden_cross
  /home/runner/work/fx_alarm_py/fx_alarm_py/src/real_trader.py:[23](https://github.com/siruku6/fx_alarm_py/runs/7542920100?check_suite_focus=true#step:5:24)5: FutureWarning: Behavior when concatenating bool-dtype and numeric-dtype arrays is deprecated; in a future version these will cast to object dtype (instead of coercing bools to numeric values). To retain the old behavior, explicitly cast bool-dtype arrays to numeric dtype.
    current_indicator["stoD_over_stoSD"] = last_candle["stoD_over_stoSD"]
...

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

The target to be fixed

  • FutureWarning: Behavior when concatenating bool-dtype and numeric-dtype arrays is deprecated; in a future version these will cast to object dtype (instead of coercing bools to numeric values). To retain the old behavior, explicitly cast bool-dtype arrays to numeric dtype.
@siruku6 siruku6 added the good first issue Good for newcomers label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant