mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(python-testing): move memoized tests to unit tests (#15507)
* chore: move memoized test into a separated file create integration test workflow * chore: create unit test workflow to run purely pytest * fix: bad reference * fix: remove pip requirements bc there aren't any yet * temp: install unit dependencies directly * fix: --rootdir= * fix: try to run only unit test * chore: decouple memoized as separated module * fix: bring back dependencies bc superset top-level module is coupled to flask and others so no reason no to do it * fix: reference * fix: pre-commit * fix: pylint
This commit is contained in:
@@ -64,6 +64,7 @@ from superset.sql_parse import ParsedQuery, Table
|
||||
from superset.utils import core as utils
|
||||
from superset.utils.core import ColumnSpec, GenericDataType
|
||||
from superset.utils.hashing import md5_sha_from_str
|
||||
from superset.utils.memoized import memoized
|
||||
from superset.utils.network import is_hostname_valid, is_port_open
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -1267,7 +1268,7 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
return parsed_query.is_select()
|
||||
|
||||
@classmethod
|
||||
@utils.memoized
|
||||
@memoized
|
||||
def get_column_spec(
|
||||
cls,
|
||||
native_type: Optional[str],
|
||||
|
||||
Reference in New Issue
Block a user