security-review/test_imports.py

14 lines
414 B
Python
Raw Normal View History

"""Import smoke test.
CI runs `pytest --collect-only` as an import check; collection imports this
module, which imports the repo's Python entry points. No API calls are made
(cross_review imports the openai SDK lazily, inside the call path).
"""
import cross_review
def test_cross_review_importable():
assert cross_review.DEFAULT_MODEL == "gpt-4.1"
assert "BLOCK" in cross_review.CROSS_REVIEWER_PROMPT