You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add Redis support and enhance test infrastructure
Add Redis container to testing environment and improve test fixtures:
- Configure Redis test instance on port 6380 (database 1)
- Update test database scripts (PowerShell and Bash) to manage Redis container
- Add Redis configuration to TestConfig
- Create redis_client fixture in conftest.py for tests
- Move logged_in_client fixture to conftest.py for broader reuse
- Update documentation in tests/README.md
- Prepare infrastructure for upcoming API and lock manager tests
These changes support testing of Zenodo API integration and resource locking functionality.
Copy file name to clipboardExpand all lines: tests/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,15 @@ This directory contains tests for the Heritrace application.
11
11
-`test_extensions.py`: Tests for the extensions module
12
12
-`test_routes.py`: Tests for the routes
13
13
-`test_editor.py`: Tests for the editor module
14
+
-`test_api.py`: Tests for the API routes
14
15
15
16
## Test Database Setup
16
17
17
18
Before running tests, you need to set up the test databases. The tests use separate database instances running on different ports than the main application:
0 commit comments