Skip to content

Commit e4de024

Browse files
committed
fix test
1 parent f88c2e8 commit e4de024

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_integration/test_order_enhancements_integration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from py_alpaca_api import PyAlpacaAPI
88
from py_alpaca_api.exceptions import APIRequestError
99

10+
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
11+
1012

1113
@pytest.mark.skipif(
1214
not os.environ.get("ALPACA_API_KEY") or not os.environ.get("ALPACA_SECRET_KEY"),
@@ -205,6 +207,9 @@ def test_stop_order_with_client_id(self, alpaca):
205207
# Cancel the order
206208
alpaca.trading.orders.cancel_by_client_order_id(client_id)
207209

210+
@pytest.mark.skipif(
211+
IN_GITHUB_ACTIONS, reason="This test is not working in GitHub Actions"
212+
)
208213
def test_trailing_stop_with_enhancements(self, alpaca):
209214
client_id = f"test-trail-{int(time.time())}"
210215
order = alpaca.trading.orders.trailing_stop(

0 commit comments

Comments
 (0)