chore: remove marshmallow-enum dependency and bump FAB (#24499)

This commit is contained in:
Daniel Vaz Gaspar
2023-06-27 08:37:43 +01:00
committed by GitHub
parent 036294a191
commit 0ddc0a6738
15 changed files with 45 additions and 37 deletions

View File

@@ -711,7 +711,11 @@ class TestDatabaseApi(SupersetTestCase):
rv = self.client.post(uri, json=database_data)
response = json.loads(rv.data.decode("utf-8"))
assert response == {
"message": {"configuration_method": ["Invalid enum value BAD_FORM"]}
"message": {
"configuration_method": [
"Must be one of: sqlalchemy_form, dynamic_form."
]
}
}
assert rv.status_code == 400
@@ -1113,7 +1117,11 @@ class TestDatabaseApi(SupersetTestCase):
rv = self.client.put(uri, json=database_data)
response = json.loads(rv.data.decode("utf-8"))
assert response == {
"message": {"configuration_method": ["Invalid enum value BAD_FORM"]}
"message": {
"configuration_method": [
"Must be one of: sqlalchemy_form, dynamic_form."
]
}
}
assert rv.status_code == 400
@@ -2873,7 +2881,6 @@ class TestDatabaseApi(SupersetTestCase):
},
"port": {
"description": "Database port",
"format": "int32",
"maximum": 65536,
"minimum": 0,
"type": "integer",
@@ -2948,7 +2955,6 @@ class TestDatabaseApi(SupersetTestCase):
},
"port": {
"description": "Database port",
"format": "int32",
"maximum": 65536,
"minimum": 0,
"type": "integer",
@@ -3023,7 +3029,6 @@ class TestDatabaseApi(SupersetTestCase):
},
"port": {
"description": "Database port",
"format": "int32",
"maximum": 65536,
"minimum": 0,
"type": "integer",