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

@@ -115,7 +115,7 @@ class TestBaseModelRestApi(SupersetTestCase):
self.assertEqual(rv.status_code, 200)
response = json.loads(rv.data.decode("utf-8"))
expected_mutation_spec = {
"properties": {"id": {"format": "int32", "type": "integer"}},
"properties": {"id": {"type": "integer"}},
"type": "object",
}
self.assertEqual(

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",

View File

@@ -501,7 +501,6 @@ def test_base_parameters_mixin():
"database": {"type": "string", "description": "Database name"},
"port": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 65536,
"description": "Database port",

View File

@@ -1249,7 +1249,11 @@ class TestReportSchedulesApi(SupersetTestCase):
rv = self.post_assert_metric(uri, report_schedule_data, "post")
response = json.loads(rv.data.decode("utf-8"))
assert response == {
"message": {"creation_method": ["Invalid enum value BAD_CREATION_METHOD"]}
"message": {
"creation_method": [
"Must be one of: charts, dashboards, alerts_reports."
]
}
}
assert rv.status_code == 400