Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #204 +/- ##
==========================================
+ Coverage 75.73% 75.88% +0.14%
==========================================
Files 21 21
Lines 647 651 +4
==========================================
+ Hits 490 494 +4
Misses 157 157 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Moving away from hardcoding a path to find the DB credentials file and use environment variables instead. This now support two ways - one is setting the path to the file and the other is setting the database URL directly. This should make it easier to deploy the library and not relying on the file being in the correct location.
Only for the snowex_db suite once this is merged. This one uses the one set via conftest. |
OK, so the logic is if you don't have env variables set, and don't supply your own file, then this must be a test suite? I agree those can be hard coded since they are arbitrary and don't need to be secretized. |
That was my thinking. Less wrangling of credentials if its a test run. Open to changes if you see any other easier way or logic. |
Use a different variable when a user wants to use different credentials than the default. This only lets the user change the db host and database. The credentials remain the same to reduce the possibility to run the test against a production DB that would wipe out all data.
From the commit message:
This also adds a credentials file to the test database that matches the user and password from the CI. Should make it easier to test snowex_db and still gives the user the ability to overwrite to his own.
Closes #203