copilot-swe-agent[bot]
9f4b162811
fix(tests): resolve CI test failures from asyncio event loop and settings reload side-effects
...
Two root causes identified and fixed:
1. tests/test_api_settings.py (TestListCredentials):
asyncio.get_event_loop().run_until_complete() raised RuntimeError in
Python 3.12 because test_api_auth_enabled.py's asyncio.run() sets the
current event loop to None on completion. Replace all 7 occurrences
with asyncio.run() which creates its own event loop each time.
2. tests/test_cors.py:
reload(app.config) replaced the app.config.settings singleton with a
new instance, so app modules holding the original reference no longer
saw patches applied to app.config.settings.X. This caused the
notification, OpenAI, and file-upload tests to behave as if unpatched.
Remove the redundant reload() calls — the tests only need a fresh
Settings(...) instance constructed with the env var already set.
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-22 20:56:58 +00:00
github-actions[bot]
6cea3a370c
style: apply ruff auto-fix
...
- Auto-formatted code with ruff format
- Applied ruff linting fixes with --fix
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-22 19:43:15 +00:00
copilot-swe-agent[bot]
a46cd6634b
feat(api): implement API key rotation mechanisms ( #168 )
...
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-22 19:24:38 +00:00
copilot-swe-agent[bot]
4e2353b214
style: ruff auto-fixes
2026-02-13 21:01:04 +00:00
copilot-swe-agent[bot]
6a2166a1df
fix: remove websocket_connect and properly mock require_admin dependency
...
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-13 17:46:56 +00:00
copilot-swe-agent[bot]
bc435ed8cb
feat(tests): add comprehensive test coverage for 6 modules (part 1)
...
- Enhanced test_upload_email.py: Added 20+ tests for email upload task (get_email_template, extract_metadata, attach_logo, prepare_recipients, send_email, upload_to_email)
- Enhanced test_api_settings.py: Added 10+ tests for settings API endpoints and models
- Created test_upload_google_drive.py: Added 25+ tests for Google Drive upload (OAuth, service account, metadata, truncation)
- Enhanced test_views_settings.py: Added 15+ tests for settings view and admin access
- Enhanced test_upload_ftp_additional.py: Added 18+ tests for FTP upload (FTPS, plaintext, directory creation, error handling)
- Enhanced test_security_headers.py: Added 12+ tests for security headers middleware
- Enhanced test_check_credentials.py: Added 15+ tests for credential checking task
- Enhanced test_views_status.py: Added 15+ tests for status dashboard and env debug views
Target: Reach ≥80% coverage for 9 modules
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-13 11:34:02 +00:00
copilot-swe-agent[bot]
43bc58770d
refactor: consolidate linting tools into Ruff
...
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-13 09:10:52 +00:00
copilot-swe-agent[bot]
ff9a3ff49f
style: fix code formatting with black, isort, and flake8
...
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-12 03:21:41 +00:00
copilot-swe-agent[bot]
c3bfb26c73
test: add comprehensive tests across modules to increase coverage above 60%
...
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com >
2026-02-09 11:57:09 +00:00