mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[tests] Fix, removing deprecated function for future Python release compatibility. (#8353)
* removing deprecated function for future Python release compatibility. * also removed assertNotEquals per @dpgaspar
This commit is contained in:
committed by
Daniel Vaz Gaspar
parent
1e533db3a2
commit
4cfd6b3ce1
@@ -493,17 +493,17 @@ class DruidTests(SupersetTestCase):
|
||||
)
|
||||
def test_urls(self):
|
||||
cluster = self.get_test_cluster_obj()
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
cluster.get_base_url("localhost", "9999"), "http://localhost:9999"
|
||||
)
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
cluster.get_base_url("http://localhost", "9999"), "http://localhost:9999"
|
||||
)
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
cluster.get_base_url("https://localhost", "9999"), "https://localhost:9999"
|
||||
)
|
||||
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
cluster.get_base_broker_url(), "http://localhost:7980/druid/v2"
|
||||
)
|
||||
|
||||
@@ -581,7 +581,7 @@ class DruidTests(SupersetTestCase):
|
||||
url = "/datasource/external_metadata/druid/{}/".format(datasource.id)
|
||||
resp = self.get_json_resp(url)
|
||||
col_names = {o.get("name") for o in resp}
|
||||
self.assertEquals(col_names, {"__time", "dim1", "dim2", "metric1"})
|
||||
self.assertEqual(col_names, {"__time", "dim1", "dim2", "metric1"})
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user