From 85ad23a1e95c5de2ae4eb8fd885671662c1286b6 Mon Sep 17 00:00:00 2001 From: jaredgoldman Date: Sat, 25 Feb 2023 16:01:44 -0500 Subject: [PATCH] Remove uneeded assert_precision arg --- tests/test_paper.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_paper.py b/tests/test_paper.py index b5a74e40..0d208ce0 100644 --- a/tests/test_paper.py +++ b/tests/test_paper.py @@ -76,7 +76,6 @@ def test_paper_trade(open_test_pikerd: AsyncContextManager, delete_testing_dir): assert_entries: bool = False, assert_pps: bool = False, assert_zeroed_pps: bool = False, - assert_precision: bool = False, executions: int = 1, size: float = 0.01, ) -> None: @@ -129,12 +128,11 @@ def test_paper_trade(open_test_pikerd: AsyncContextManager, delete_testing_dir): # Do nothing, message isn't a position await trio.sleep(1) # Assert entries are made in both ledger and PPS - if assert_entries or assert_pps or assert_zeroed_pps or assert_precision: + if assert_entries or assert_pps or assert_zeroed_pps: _assert( assert_entries, assert_pps, assert_zeroed_pps, - assert_precision, pps, msg, ) @@ -143,7 +141,7 @@ def test_paper_trade(open_test_pikerd: AsyncContextManager, delete_testing_dir): raise KeyboardInterrupt def _assert( - assert_entries, assert_pps, assert_zerod_pps, assert_precision, pps, msg + assert_entries, assert_pps, assert_zerod_pps, pps, msg ): with ( open_trade_ledger(broker, test_account) as ledger,