Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme22 committed Jul 8, 2024
1 parent b5dc8dd commit d725cad
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit d725cad

Please sign in to comment.