mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
chore: remove deprecated config keys and endpoints code 2.0 (#19361)
* remove depracted keys and associated methods * remove api methods and tablemodel views * remove deprecated api and unsued vars * reremove schedules * readd code * fix pylint * run black * remove test * core select start test * add suggested changes
This commit is contained in:
committed by
GitHub
parent
9d71f33d62
commit
0968f86584
@@ -1240,22 +1240,6 @@ class TestCore(SupersetTestCase):
|
||||
assert data == ["this_schema_is_allowed_too"]
|
||||
self.delete_fake_db()
|
||||
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
def test_select_star(self):
|
||||
self.login(username="admin")
|
||||
examples_db = superset.utils.database.get_example_database()
|
||||
resp = self.get_resp(f"/superset/select_star/{examples_db.id}/birth_names")
|
||||
self.assertIn("gender", resp)
|
||||
|
||||
def test_get_select_star_not_allowed(self):
|
||||
"""
|
||||
Database API: Test get select star not allowed
|
||||
"""
|
||||
self.login(username="gamma")
|
||||
example_db = superset.utils.database.get_example_database()
|
||||
resp = self.client.get(f"/superset/select_star/{example_db.id}/birth_names")
|
||||
self.assertEqual(resp.status_code, 403)
|
||||
|
||||
@mock.patch("superset.views.core.results_backend_use_msgpack", False)
|
||||
def test_display_limit(self):
|
||||
from superset.views import core
|
||||
|
||||
Reference in New Issue
Block a user