[PR #30660] fix: add DB_TYPE environment variable to unit tests #32914

Closed
opened 2026-02-21 20:52:19 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30660

State: closed
Merged: Yes


Summary

Add monkeypatch.setenv("DB_TYPE", "postgresql") to all test functions in test_dify_config.py that set DB_* environment variables.

Changes

  • Added DB_TYPE to test_dify_config
  • Added DB_TYPE to test_http_timeout_defaults
  • Added DB_TYPE to test_flask_configs
  • Added DB_TYPE to test_inner_api_config_exist
  • Added DB_TYPE to test_db_extras_options_merging
  • Added DB_TYPE to test_celery_broker_url_with_special_chars_password

Why

The DB_TYPE configuration variable was recently added to DatabaseConfig, but the unit tests were not updated to include this environment variable. This ensures tests properly set the required configuration.

Closes #30543

**Original Pull Request:** https://github.com/langgenius/dify/pull/30660 **State:** closed **Merged:** Yes --- ## Summary Add `monkeypatch.setenv("DB_TYPE", "postgresql")` to all test functions in `test_dify_config.py` that set DB_* environment variables. ## Changes - Added DB_TYPE to `test_dify_config` - Added DB_TYPE to `test_http_timeout_defaults` - Added DB_TYPE to `test_flask_configs` - Added DB_TYPE to `test_inner_api_config_exist` - Added DB_TYPE to `test_db_extras_options_merging` - Added DB_TYPE to `test_celery_broker_url_with_special_chars_password` ## Why The `DB_TYPE` configuration variable was recently added to `DatabaseConfig`, but the unit tests were not updated to include this environment variable. This ensures tests properly set the required configuration. Closes #30543
yindo added the pull-request label 2026-02-21 20:52:19 -05:00
yindo closed this issue 2026-02-21 20:52:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32914