mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +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
@@ -6,7 +6,7 @@ import pandas as pd
|
||||
|
||||
from superset import app
|
||||
from superset.exceptions import SpatialException
|
||||
from superset.utils import DTTM_ALIAS
|
||||
from superset.utils.core import DTTM_ALIAS
|
||||
import superset.viz as viz
|
||||
from .base_tests import SupersetTestCase
|
||||
from .utils import load_fixture
|
||||
@@ -996,7 +996,7 @@ class BaseDeckGLVizTestCase(SupersetTestCase):
|
||||
with self.assertRaises(SpatialException):
|
||||
test_viz_deckgl.parse_coordinates('fldkjsalkj,fdlaskjfjadlksj')
|
||||
|
||||
@patch('superset.utils.uuid.uuid4')
|
||||
@patch('superset.utils.core.uuid.uuid4')
|
||||
def test_filter_nulls(self, mock_uuid4):
|
||||
mock_uuid4.return_value = uuid.UUID('12345678123456781234567812345678')
|
||||
test_form_data = {
|
||||
|
||||
Reference in New Issue
Block a user