mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(🦾): bump python ruff 0.4.5 -> 0.8.0 (#31001)
Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3aa8f32ca9
commit
1e4098a29e
@@ -1091,7 +1091,7 @@ def test__normalize_prequery_result_type(
|
||||
columns_by_name,
|
||||
)
|
||||
|
||||
assert type(normalized) == type(result)
|
||||
assert isinstance(normalized, type(result))
|
||||
|
||||
if isinstance(normalized, TextClause):
|
||||
assert str(normalized) == str(result)
|
||||
|
||||
@@ -91,7 +91,7 @@ class TestBaseViz(SupersetTestCase):
|
||||
datasource = self.get_datasource_mock()
|
||||
test_viz = viz.BaseViz(datasource, form_data)
|
||||
result = test_viz.get_df(query_obj)
|
||||
assert type(result) == pd.DataFrame
|
||||
assert isinstance(result, pd.DataFrame)
|
||||
assert result.empty
|
||||
|
||||
def test_get_df_handles_dttm_col(self):
|
||||
|
||||
@@ -143,7 +143,7 @@ def test_create_pickle_entry(
|
||||
found_entry = (
|
||||
db.session.query(KeyValueEntry).filter_by(id=created_entry.id).one()
|
||||
)
|
||||
assert type(pickle.loads(found_entry.value)) == type(PICKLE_VALUE)
|
||||
assert isinstance(pickle.loads(found_entry.value), type(PICKLE_VALUE))
|
||||
assert found_entry.created_by_fk == admin_user.id
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user