Skip to content

Commit 5bf69a2

Browse files
test: skip openJupyter security tests when flask is not installed in CI
1 parent 9fe3608 commit 5bf69a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_openjupyter_security.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# Ensure the project root is on the path
88
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
99

10+
# Skip entire module if flask is not installed (e.g. in CI with minimal deps)
11+
pytest.importorskip("flask", reason="flask not installed — skipping server endpoint tests")
12+
1013
# Set a test API key before importing the app module
1114
TEST_API_KEY = "test-secret-key-12345"
1215

0 commit comments

Comments
 (0)