Skip to content

Commit

Permalink
update in test
Browse files Browse the repository at this point in the history
  • Loading branch information
white07S committed Dec 16, 2022
1 parent df6fecd commit 4f0baf6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
Binary file modified src/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified src/models/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified src/models/__pycache__/train_model.cpython-39.pyc
Binary file not shown.
4 changes: 1 addition & 3 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ def test_calc_test():
data = [0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0]
data = [float(x) for x in data]
result = (([6, 12, 18], [0.0, 0.0], [([6, 12, 18], (0.0, 0.0, 0.0, 0.0, 0.0, 0.0))], [[([6, 12, 18], (0.0, 0.0, 0.0, 0.0, 0.0, 0.0))]]), ([3, 9, 15, 21], [0.0, 3.0], [([3, 9, 15, 21], (0.0, 3.0, 0.0, 0.0, 0.0, 0.0))], [[([3, 9, 15, 21], (0.0, 3.0, 0.0, 0.0, 0.0, 0.0))]]))
assert result == calc_support_resistance(data, extmethod=METHOD_NAIVE)
assert result == calc_support_resistance(data, extmethod=METHOD_NAIVECONSEC)
assert result == calc_support_resistance(data)
assert result == calc_support_resistance(data, extmethod=METHOD_NAIVE,accuracy=8)

0 comments on commit 4f0baf6

Please sign in to comment.