Skip to content

Commit 003e5ee

Browse files
committed
Add additional rounding
1 parent 8861f30 commit 003e5ee

File tree

8 files changed

+4544
-4544
lines changed

8 files changed

+4544
-4544
lines changed

tests/csv/test_toolkit_controller/test_toolkit_technicals.csv

Lines changed: 757 additions & 757 deletions
Large diffs are not rendered by default.

tests/csv/test_toolkit_controller/test_toolkit_technicals_1.csv

Lines changed: 756 additions & 756 deletions
Large diffs are not rendered by default.

tests/csv/test_toolkit_controller/test_toolkit_technicals_2.csv

Lines changed: 756 additions & 756 deletions
Large diffs are not rendered by default.

tests/technical/csv/test_technical_controller/test_collect_all_indicators.csv

Lines changed: 757 additions & 757 deletions
Large diffs are not rendered by default.

tests/technical/csv/test_technical_controller/test_collect_all_indicators_1.csv

Lines changed: 756 additions & 756 deletions
Large diffs are not rendered by default.

tests/technical/csv/test_technical_controller/test_collect_all_indicators_2.csv

Lines changed: 756 additions & 756 deletions
Large diffs are not rendered by default.

tests/technical/test_technical_controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626

2727
def test_collect_all_indicators(recorder):
28-
recorder.capture(technical_module.collect_all_indicators().round(2))
29-
recorder.capture(technical_module.collect_all_indicators(growth=True).round(2))
28+
recorder.capture(technical_module.collect_all_indicators().round(0))
29+
recorder.capture(technical_module.collect_all_indicators(growth=True).round(0))
3030
recorder.capture(
31-
technical_module.collect_all_indicators(growth=True, lag=[1, 2, 3]).round(2)
31+
technical_module.collect_all_indicators(growth=True, lag=[1, 2, 3]).round(0)
3232
)
3333

3434

tests/test_toolkit_controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def test_toolkit_technicals(recorder):
187187
toolkit._daily_risk_free_rate = risk_free_rate
188188
toolkit._daily_treasury_data = treasury_data
189189

190-
recorder.capture(toolkit.technicals.collect_all_indicators())
191-
recorder.capture(toolkit.technicals.collect_all_indicators(growth=True))
190+
recorder.capture(toolkit.technicals.collect_all_indicators().round(0))
191+
recorder.capture(toolkit.technicals.collect_all_indicators(growth=True).round(0))
192192
recorder.capture(
193-
toolkit.technicals.collect_all_indicators(growth=True, lag=[1, 2, 3])
193+
toolkit.technicals.collect_all_indicators(growth=True, lag=[1, 2, 3]).round(0)
194194
)

0 commit comments

Comments
 (0)