feat(docker): Add pytest support to docker-compose-light.yml (#34373)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Maxime Beauchemin
2025-08-06 00:17:50 -04:00
committed by GitHub
parent 6f5d9c989a
commit 246181a546
15 changed files with 687 additions and 70 deletions

View File

@@ -35,6 +35,21 @@ from superset.utils.oauth2 import decode_oauth2_state
if TYPE_CHECKING:
from superset.db_engine_specs.base import OAuth2State
# Skip these tests if shillelagh can't import pip
# This happens in some environments where pip is not available as a module
skip_reason = None
try:
import shillelagh.functions # noqa: F401
except ImportError as e:
if "No module named 'pip'" in str(e):
skip_reason = (
"shillelagh requires 'pip' module which is not available in this "
"environment"
)
if skip_reason:
pytestmark = pytest.mark.skip(reason=skip_reason)
class ProgrammingError(Exception):
"""