Default SQLALCHEMY_DATABASE_URI to None, error if no URI or binds#731
Conversation
733d02f to
959c419
Compare
davidism
left a comment
There was a problem hiding this comment.
Minor formatting change, otherwise looks good 👍
docs/config.rst
Outdated
|
|
||
| .. versionchanged:: 3.0 | ||
|
|
||
| * ``SQLALCHEMY_TRACK_MODIFICATIONS`` configuration key now defaults to ``False`` |
There was a problem hiding this comment.
These need to be indented by 4 spaces, same with the previous block.
There was a problem hiding this comment.
Hi @davidism sorry this slipped my radar, I will push up the change now.
There was a problem hiding this comment.
Just updated - it looks like the block above was 2 spaces indented, please let me know if I got that wrong.
9ff7bef to
e1c4bc8
Compare
|
@davidism I just fixed a merge conflict, so I think this is ready for your review again. There's one failing travis test but it looks like it might be a quirk if you don't mind retrying. Please let me know if you find any issues. Apologies for the delay! |
|
I have no idea what's causing py36-lowest to fail, but I can reproduce it locally. |
|
Ok thanks! I will take a look too. |
|
It looks like Travis has been failing tests on |
|
Looks like maybe the issue is that these tests are bringing in Relevant issues: pytest-dev/pytest#5532 and pallets/flask#3275 |
|
Nice, using Flask 1.0.4 works. See #787 for bumping dependencies. |
|
OK, that's merged in to master now, you can rebase and test this again. |
e1c4bc8 to
06e0e12
Compare
- Default SQLALCHEMY_DATABASE_URI to None - Throw an error when SQLALCHEMY_DATABASE_URI and SQLALCHEMY_BINDS are unset - Update tests - Update docs - Update changelog, fix formatting for previous change
06e0e12 to
bde166e
Compare
|
@davidism awesome, thanks! Rebased and resolved conflicts and tests now pass. |
|
Cool, we're good to go. Thanks for working on this! |
Resolves #663
SQLALCHEMY_DATABASE_URItoNoneand throw an error whenSQLALCHEMY_DATABASE_URIandSQLALCHEMY_BINDSare unsettest_defaultsis now split intotest_default_error_without_uri_or_bindsandtest_defaults_with_uri)