This commit is contained in:
Danglewood
2023-02-25 22:16:16 -08:00
parent 9289c53675
commit 67ca8a656e
5 changed files with 39 additions and 0 deletions

View File

@@ -76,3 +76,11 @@ def test_get_screener_output_invalid_status(mocker):
)
assert result_tuple[0].empty
@pytest.mark.vcr
def test_get_screener_output_30_delta_spy(recorder):
result_tuple = syncretism_model.get_screener_output(
preset="30_delta_spy.ini",
)
recorder.capture(result_tuple[0])

View File

@@ -63,3 +63,15 @@ def test_view_historical_greeks(mocker):
limit=5,
export="",
)
@pytest.mark.vcr(record_mode="none")
@pytest.mark.record_stdout
@pytest.mark.parametrize(
"preset",
["template.ini", "spy_30_delta.ini"],
)
def test_view_available_presets(preset):
syncretism_view.view_available_presets(
preset=preset,
)

View File

@@ -0,0 +1,13 @@
- FILTER -
tickers : "SPY"
itm : true
otm : true
min-strike : 280
calls : true
puts : true
stock : true
etf : true
min-delta : 0.10
max-delta : 0.35
min-oi : 10
min-volume : 100

View File

@@ -0,0 +1,5 @@
- FILTER -
itm : true
otm : true
calls : true
puts : true