mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[utils.py] gathering/refactoring into a "utils/" folder (#6095)
* [utils] gathering/refactoring into a "utils/" folder Moving current utils.py into utils/core.py and moving other *util* modules under this new "utils/" as well. Following steps include eroding at "utils/core.py" and breaking it down into smaller modules. * Improve tests * Make loading examples in scope for tests * Remove test class attrs examples_loaded and requires_examples
This commit is contained in:
committed by
Beto Dealmeida
parent
af0ffa44ab
commit
bbfd69a138
@@ -80,8 +80,6 @@ def create_access_request(session, ds_type, ds_name, role_name, user_name):
|
||||
|
||||
class RequestAccessTests(SupersetTestCase):
|
||||
|
||||
requires_examples = False
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
security_manager.add_role('override_me')
|
||||
@@ -317,7 +315,7 @@ class RequestAccessTests(SupersetTestCase):
|
||||
|
||||
session.commit()
|
||||
|
||||
@mock.patch('superset.utils.send_MIME_email')
|
||||
@mock.patch('superset.utils.core.send_MIME_email')
|
||||
def test_approve(self, mock_send_mime):
|
||||
if app.config.get('ENABLE_ACCESS_REQUEST'):
|
||||
session = db.session
|
||||
|
||||
Reference in New Issue
Block a user