[main] Disable resetting main DB attributes (#6845)

This commit is contained in:
John Bodley
2019-02-13 16:41:16 -08:00
committed by GitHub
parent 103a97f87d
commit 60d5f89faa
2 changed files with 7 additions and 6 deletions

View File

@@ -646,15 +646,14 @@ class CoreTests(SupersetTestCase):
main_db_uri = (
db.session.query(models.Database)
.filter_by(database_name='main')
.all()
.one()
)
test_file = open(filename, 'rb')
form_data = {
'csv_file': test_file,
'sep': ',',
'name': table_name,
'con': main_db_uri[0].id,
'con': main_db_uri.id,
'if_exists': 'append',
'index_label': 'test_label',
'mangle_dupe_cols': False,