Skip to content

Fix order flag test fixture setup - #206

Open
dajiaohuang wants to merge 1 commit into
AsyncAlgoTrading:mainfrom
dajiaohuang:fix/order-book-flag-test-fixture
Open

dajiaohuang wants to merge 1 commit into
AsyncAlgoTrading:mainfrom
dajiaohuang:fix/order-book-flag-test-fixture

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

  • Rename the test class fixture hook to pytest�s setup_method, so each synthetic order-book test initializes its book.
  • The FOK/AON/IOC market and limit cases previously failed during collection/execution with AttributeError: ... has no attribute ob before exercising their assertions.

Validation

  • python -m pytest -q aat/tests/core/order_book — 18 passed.
  • python -m pytest -q aat/tests/core aat/tests/engine/test_periodic.py — 26 passed.
  • flake8 aat setup.py — passed.

Validation used an isolated Python 3.13.13 environment with pytest 9.2.0; the full repository test suite was not run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant