opencompletion.com/tests/integration
Russell Ballestrini aa1651ae81 Fix integration tests: ensure Flask instance directory exists
The integration tests were failing in GitHub Actions with 'unable to open
database file' errors because the Flask instance directory didn't exist.

The app.py code at line 40 creates a database URI using app.instance_path,
which requires that directory to exist. In GitHub Actions, this directory
doesn't exist by default, causing SQLite to fail when trying to create
the database file (even though tests override to use :memory:).

Solution: Create instance directory in setUp() before app context is pushed.

Changes:
- Add os.makedirs(app.app.instance_path, exist_ok=True) in setUp()
- Also fixed temp file paths to use absolute paths for research directory
- All 9 integration tests now pass locally

This ensures tests work in both local and GitHub Actions environments.
2025-11-10 17:30:53 -05:00
..
test_activity_integration.py Fix remaining integration test failures 2025-11-10 16:30:06 -05:00
test_activity_processing.py Fix integration test failures 2025-11-10 16:06:59 -05:00
test_app_activity_functions.py Fix integration tests: ensure Flask instance directory exists 2025-11-10 17:30:53 -05:00
test_app_integration.py Run black formatter on all Python files 2025-11-10 19:37:05 +00:00
test_multiple_activities.py Integrate comprehensive testing framework with Makefile 2025-08-10 19:38:50 -04:00