perf: scope SEC ticker quality checks
This commit is contained in:
@@ -122,7 +122,8 @@ async def test_ticker_quality_explains_no_xbrl_block(db_session):
|
||||
status="promoted",
|
||||
validation_json=json.dumps({
|
||||
"setup_blocked_ciks": [ticker.cik],
|
||||
"no_xbrl_filings": [{"cik": ticker.cik}],
|
||||
"no_xbrl_ciks": [ticker.cik],
|
||||
"no_xbrl_filings": [],
|
||||
}),
|
||||
started_at=datetime.now(timezone.utc),
|
||||
),
|
||||
@@ -133,3 +134,6 @@ async def test_ticker_quality_explains_no_xbrl_block(db_session):
|
||||
assert quality.eligible is False
|
||||
assert quality.code == "no_xbrl_filings"
|
||||
assert "CIK override" in (quality.message or "")
|
||||
assert await fundamentals_quality_service.ticker_is_eligible(
|
||||
db_session, ticker.id
|
||||
) is False
|
||||
|
||||
@@ -680,6 +680,7 @@ async def test_validation_caps_details_but_keeps_complete_blocked_cik_set():
|
||||
|
||||
assert len(result.summary["missing_xbrl"]) == 50
|
||||
assert len(result.summary["no_xbrl_filings"]) == 50
|
||||
assert len(result.summary["no_xbrl_ciks"]) == 60
|
||||
assert len(result.summary["recovered_from_coregistrant"]) == 50
|
||||
assert len(result.summary["setup_blocked_ciks"]) == 120
|
||||
|
||||
|
||||
Reference in New Issue
Block a user