Require the SQLAlchemy URI on the database model (#8720)

* Require the SQLAlchemy URI when creating a database

* Add migration to make dbs.sqlalchemy_uri not-nullable

* Fixes for black, isort, tests

* Alter migration to use current revision from master as downgrade target

* Update tests to support new db constraint

* black
This commit is contained in:
Will Barrett
2019-12-11 14:05:23 -08:00
committed by Maxime Beauchemin
parent a96eae46af
commit ed54f6ec8d
4 changed files with 51 additions and 3 deletions

View File

@@ -228,6 +228,7 @@ class SupersetTestCase(TestCase):
cls=models.Database,
criteria={"database_name": database_name},
session=db.session,
sqlalchemy_uri="sqlite://test",
id=db_id,
extra=extra,
)