-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-add database user and password as settings, and rename from MYSQL_…
…* to SQL_* (#258) * Re-add database user and password as settings, and rename from MYSQL_* to SQL_* * Implement config settings deprecation system * Include the accidentally excluded MYSQL_PASSWORD in the deprecation map * Merge main branch into fix-db-connection-settings * Include postgres user/password settings as deprecated * Please flake8 * Add DeprecationWarning exception * Handle deprecated settings in schema preload, and provide better warnings * Adhere flake8 style guide * Test usage of TC_SQL_* env var credentials * Test behaviour of handling of deprecated config settings * Adhere to flake8 style guide * Fix docstring * Add comment about when settings shall be removed Co-authored-by: Dion Häfner <[email protected]> * Improve deprecated setting warning message Co-authored-by: Dion Häfner <[email protected]> * Adhere to flake8 max line length * Simply warnings for usage of deprecated fields * Fetch settings once when creating URL instance * Update test for setting deprecated settings; for the simpler warnings * Update test to correspond to the new warning messages Co-authored-by: Nicklas Boserup <[email protected]> Co-authored-by: Dion Häfner <[email protected]>
- Loading branch information
1 parent
65f877d
commit 9897c84
Showing
5 changed files
with
96 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters