From d725cad5904c8a01144cc67bb78bc921bbf1b976 Mon Sep 17 00:00:00 2001 From: Graeme Holliday Date: Mon, 8 Jul 2024 11:58:38 -0500 Subject: [PATCH] simplify test --- tests/test_account.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/test_account.py b/tests/test_account.py index 8ddfb25..c13dcb4 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -6,8 +6,7 @@ from tastytrade import Account, CertificationSession from tastytrade.instruments import Equity from tastytrade.order import (NewComplexOrder, NewOrder, OrderAction, - OrderStatus, OrderTimeInForce, OrderType, - PriceEffect) + OrderTimeInForce, OrderType, PriceEffect) @pytest.fixture(scope='session') @@ -91,13 +90,8 @@ def placed_order(session, account, new_order): return account.place_order(session, new_order, dry_run=False).order -def test_place_and_delete_order(session, account, new_order): - order = account.place_order(session, new_order, dry_run=False).order - sleep(3) - account.delete_order(session, order.id) - - def test_get_order(session, account, placed_order): + sleep(3) assert account.get_order(session, placed_order.id).id == placed_order.id