Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit bc757ea

Browse files
committed
Disable get last test
1 parent 33d0366 commit bc757ea

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

docs/get_last.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_last() -> pd.DataFrame:
1515
quote = client.get_last_option(
1616
req=OptionReqType.QUOTE,
1717
root="AAPL",
18-
exp=date(2022, 8, 12),
18+
exp=date(2022, 9, 16),
1919
strike=140.00,
2020
right=OptionRight.CALL,
2121
)

docs/tutorials.md

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ The above example returned a `Series`. Let's see how we can use it to process ou
139139

140140
Now let's try a low-latency request for the most recent option data available:
141141

142+
Note that *as of now*, live data requests will only work during trading hours!
143+
142144
=== "get_last.py"
143145

144146
```python

tests/test_docs.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Contains tests for the tutorial section of the documentation."""
2+
import pytest
23
import docs
34
from docs.get_last import get_last
45
from docs.list_roots import get_roots
@@ -18,6 +19,9 @@ def test_docs_list_roots():
1819
manipulate_series.main()
1920

2021

21-
def test_docs_first_req():
22-
"""Test the first tutorial."""
22+
@pytest.mark.skip(
23+
reason="Live data currently only works during trading hours."
24+
) # TODO: remove
25+
def test_docs_get_last():
26+
"""Test the live data tutorial."""
2327
get_last()

0 commit comments

Comments
 (0)