Commit f8de8bd
fix(tests): add bcrypt to pyproject.toml and fix E2E auth bypass
Fixed two test failures:
1. GitHub CI: Added bcrypt>=4.0 to pyproject.toml dependencies
(was only in requirements.txt, but CI uses pyproject.toml)
2. E2E Tests: Extended auth middleware to detect E2E test environment
- Added SCIDK_E2E_TEST env var in global-setup.ts
- Updated auth_middleware.py to skip auth when SCIDK_E2E_TEST is set
- E2E tests run Flask in subprocess, so pytest detection doesn't work
This allows E2E tests to run without authentication unless PYTEST_TEST_AUTH
is explicitly set (for auth-specific E2E tests).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 3caeff6 commit f8de8bd
3 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments