Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Mar 25, 2022
1 parent 8b70d35 commit d7568a5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function PropertiesModal({
show,
addSuccessToast,
}: PropertiesModalProps) {
console.log(slice);
const [submitting, setSubmitting] = useState(false);
const [form] = AntdForm.useForm();
// values of form inputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
return [];
};

const renderEditModalFooter = (db: DatabaseObject) => (
const renderEditModalFooter = (db: Partial<DatabaseObject> | null) => (
<>
<StyledFooterButton key="close" onClick={onClose}>
{t('Close')}
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/charts/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ def test_get_chart(self):
"slice_name": "title",
"viz_type": None,
"query_context": None,
"is_managed_externally": False,
}
data = json.loads(rv.data.decode("utf-8"))
self.assertEqual(data["result"], expected_result)
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/dashboards/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ def test_get_dashboard(self):
"url": "/superset/dashboard/slug1/",
"slug": "slug1",
"thumbnail_url": dashboard.thumbnail_url,
"is_managed_externally": False,
}
data = json.loads(rv.data.decode("utf-8"))
self.assertIn("changed_on", data["result"])
Expand Down

0 comments on commit d7568a5

Please sign in to comment.