siruku6 / fx_alarm_py

This app alarm you when you should check FX chart. (is being developed ...)
GNU General Public License v3.0
1 stars 0 forks source link

resolve warnings occuring during pytest #216

Open siruku6 opened 2 years ago

siruku6 commented 2 years ago
$ 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